SQL videos Flashcards
what does access use in the backend
SQL!
most basic SQL query
Select one field
From one table
SELECT * FROM tales
Gives u all the fields
SELECT * FROM table
WHERE
what does where clause mean
helps you limit the data
SELECT * FROM table
WHERE
ORDER BY
what does order by clause mean
helps you sort the data
How do you put in a criteria like names starting w B?
why star?
LIKE “B*”
so you can get every ending that begins w B
HOW DO you put in a criteria for # of characters
LIKE “?????..”
number of ? is number of characters
How do you put in a criteria for books with titles a-m
LIKE “[A-M]*”
how to run a query for multpiple tables?
drag them both into the work area
put in the criteria at the bottom regularly
select statement with and/or condition
SLECT * FROM
WHERE — OR—
Show all products and corresponding supplier info
SELECT
FROM
WHERE suppliers = products
Show all products and the corresponding category info
SELECT Categories.CategoryID,CategoryName,ProductName,Inventory
FROM Categories, Products
WHERE Categories.CategoryID=Categories.CategoryID
slide 15-23 on week 10 slide