Lesson 5 - Database Flashcards
1
Q
ranged values
A
we can restrict our selections to a range e.g we can use WHERE stockitem = ‘shirt’ or > or < or <> (not equal to) or <= (less than or equal to) or >= (greater than or equal to)
2
Q
combinations (allows us to select multiple items)
A
e.g. Select fldstockitem, fldprice, fldcolour from TblInventory where
fldprice <= 45 and fldstockitem = ‘shirt’ and fldcolour = ‘blue’
(can use AND / OR)
3
Q
time and date ranges
A
- Mysql stores date in the format ‘YYYY-MM-DD ‘
- Mysql stores time in the format ‘hh:mm:ss’
(needs the quotes)