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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly