24
Welcome to vel II Query Traini

Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Embed Size (px)

Citation preview

Page 1: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Welcome to

Level II Query Training

Page 2: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

• Fields must include the table as a prefix (e.g. STU.GR).• Table Order Matters

Level II Query Training

Page 3: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Query Structure - Review Multi Table Query Steps Functions / Output – Labels and Reports Time Savers:

Printout the Code Table Sample Saved Queries

Change

Level II Query Training

Page 4: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

QUERY Language

Commands

• LIST• TOTAL• KEEP• SKIP

Table

• STU• TCH

Fields

• LN• FN• ID• GR

BY

• Order of Fields

IF

• Sorting options

• = > < # : ; >= <=

• AND, OR

• LIST STU ID GR BY GR ID IF GR = 12•TOTAL STU ID GR BY GR ID• LIST STU FN RC1 ID GR BY GR IF RC1 >= 299

Page 5: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Query Structure - Review Multi Table Query Steps Functions / Output – Labels and Reports Time Savers:

Printout the Code Table Sample Saved Queries

Level II Query Training

Page 6: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Multi-Table QUERY Language

Commands

• LIST• TOTAL• KEEP• SKIP

Table

• List All Tables Used before the fields.

• STU TCH LAC• STU GRD TST

Fields

• STU.LN• STU.FN• STU.ID• STU.GR• TCH.TE• LAC.PL

•The biggest change is that all fields must include a Table prefix.

Page 7: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Try the following queries:

LIST STU CSE STU.ID STU.LN STU.GR CSE.PL

LIST CSE STU STU.ID STU.LN STU.GR CSE.PL

Compare the results…

Page 8: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

PracticePrint a class list of elementary teachers,

including student name, grade, sex, parent or guardian, father’s work, mother’s work, teacher name. Sort the list by teacher’s name.

LIST STU TCH STU.NM STU.GR STU.SX STU.PG

STU.TL STU.FW STU.MW TCH.TE BY TCH.TE

Page 9: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

PracticeList of students suspended with the ADS code

and dates of suspension.

LIST STU ADS STU.NM ADS.DT ADS.CD ADS.DS ADS.DD ADS.ED IF ADS.DS : SUS

Multiple records may be returned.

Page 10: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Aeries is looking for any record that contains a matching record.

Any record with a STU.ID is returned.Can we sort records out? Yes…no?

-There are limitations to what can be sorted. Comparing ELA and Math can get quirky.

Can we get single records per line yes and no.-Not in query…

Page 11: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Query Structure - Review Multi Table Query Steps Functions / Output – Labels and Reports Time Savers:

Printout the Code Table Sample Saved Queries

Level II Query Training

Page 12: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Functions

Page 13: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

FunctionsNew - Clear the query window.Run – Run the current query.Report – Create a report of Query data.Labels – Set out put for Avery 5150 from Query data.Letters – Not used.Letter Editor – Not used.Envelope – Not Used.To File – Save the Query result to a delimited text file.Save – Save the Query Language not the data.Load – Load a Saved QueryStartup – Setup Aeries to load a keep statement.Reset – Clear all SKIPs and KEEPs.Tables – Reload tables, if results seem quirky.Exit – Leave the Query window.

Page 14: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Report

1. Run the desired query.2. Close the resulting table.3. Click report.4. Select options.5. Select OK.

Page 15: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

ReportTo make the report… use BY in the query:

LIST STU ID GR LN FN BY GRLIST STU ID GR LN FN

Page 16: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Labels• The structure of the query can be used to

create labels.• The Special menu shows “\” means new line.

Page 17: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Labels

1. Run the desired query.2. Close the resulting table.3. Click Labels.4. Select options.5. Select OK.

LIST STU FN LN \ AD \ CY ST ZC ZX

Page 18: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Any text can be added to a query.

LIST STU To the Parents of: FN LN \ AD \ CY ST ZC ZX

Page 19: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Labels Practice

Make a list of students using ID, grade, Last Name, First Name, Sex and Special ED placement by sex.

LIST STU CSE ID: STU.ID Grade: STU.GR \ STU.LN , STU.FN \ SEX: STU.SX \ CSE.PL BY STU.SX IF CSE.PL # “”

Page 20: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Query Structure - Review Multi Table Query Steps Functions / Output – Labels and Reports Time Savers:

Printout the Code Table Sample Saved Queries

Level II Query Training

Page 21: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Time Savers:• Printout the Database Definitions from Reports• Save it as a PDF on your desktop• Search it to find: – Fields– Table links

Page 22: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Time Savers:

What does this tell us about the ADS Table?• It is related by STU.• It uses the student number not Perm ID.

Page 23: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

Time Savers:

• Save Queries to notepad or Word document

• Find Common Queries :– Online at Aeries– Online at Assessment and Data Systems.

http://www.empire.k12.ca.us/District/Department/22-Technology-Department/1537-District-Technology-Resources.html

Page 24: Welcome to. Fields must include the table as a prefix (e.g. STU.GR). Table Order Matters

ReminderIf you make a mistake…

• The clock is ticking…• The system is backed up hourly. • The longer the you wait the more data that

could be lost.• Sooooo….• Call Extension: 2218