Upload
keila-rubottom
View
213
Download
0
Embed Size (px)
Citation preview
Welcome to
Level II Query Training
• Fields must include the table as a prefix (e.g. STU.GR).• Table Order Matters
Level II Query Training
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
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
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
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.
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…
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
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.
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…
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
Functions
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.
Report
1. Run the desired query.2. Close the resulting table.3. Click report.4. Select options.5. Select OK.
ReportTo make the report… use BY in the query:
LIST STU ID GR LN FN BY GRLIST STU ID GR LN FN
Labels• The structure of the query can be used to
create labels.• The Special menu shows “\” means new line.
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
Any text can be added to a query.
LIST STU To the Parents of: FN LN \ AD \ CY ST ZC ZX
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 # “”
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
Time Savers:• Printout the Database Definitions from Reports• Save it as a PDF on your desktop• Search it to find: – Fields– Table links
Time Savers:
What does this tell us about the ADS Table?• It is related by STU.• It uses the student number not Perm ID.
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
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