|
select * from survey where City = 'Delhi' |
Retrieves all items having attribute value of city as Delhi (It will return row having item name I04 and A08)
|
|
select * from survey where City ='paris' OR City ='Delhi' |
Retrieves all items contain Delhi or Paris in city attribute column. (It will return row having item name I04, S02, A05 and A08)
|
|
select * from survey where City != 'london' |
Retrieves all items for which the value of city is not London. (It will return row having item name I04, S02, A05 and A08)
|
|
select * from survey where City != 'london' AND City != 'Delhi' |
Retrieves all items which do not contain both London and Delhi. (It will return row having item name I04, S02, A05, T01, T06 and A08)
|
|
select * from survey where Year > '2000' |
Retrieves all items exported after year 2000 (It will return row having item name T06, A05 and A08)
|
|
select * from survey where Year >= '2001' |
Retrieves all items exported in year 2000 and after it. (It will return row having item name T06, A05 and A08)
|
|
select * from survey where Year < '2000' |
Retrieves all items exported before 2000. . (It will return row having item name I04, S02, T01)
|
|
select * from survey where Year <= '2001' |
Retrieves all items exported in 2001 and before 2001 (It will return row having item name I04, S02, T01 and A05)
|
|
select * from survey where City like 'lon%' |
Retrieves all items having city name with pre constant ‘lon’. (It will return row having item name T01 and T06)
|
|
select * from survey where City not like 'par%' |
Retrieves all items not having pre constant ‘par’ (It will return row having item name I04, T01, T06 and A08)
|
|
select * from survey where City = 'Delhi' intersection Year <= '2000' |
Retrieves all items having city Delhi and year greater than 2000 (It will return row having item name I04)
|
|
select * from survey where City like 'lon%' |
Retrieves all items having city name with pre constant ‘lon’. (It will return row having item name T01 and T06)
|
|
select * from survey where Year between '1981' and '2000' |
Retrieves all items exported after 1881 and before 2000 (It will return row having item name I04, S02, T01)
|
|
select * from survey where Year in('1981','2000','2003') |
Retrieves all items having year 1981 , 2000 and 2003 ((It will return row having item name T01, T06 and S02)
|
|
select * from survey where itemName() in('T01','S02','A05') |
Retrieves all items having Item Name T01 , S02 and A05 (It will return row having item name T01 , S02 and A05).
|
|
select * from survey where City like 'lon%' |
Retrieves all items having city name with pre constant ‘lon’. (It will return row having item name T01 and T06)
|
|
select * from survey where Year is null |
Retrieves items for which year field is empty. (It will not return any row)
|
|
select * from survey where Year is not null |
Retrieves items for which year field is not empty. (It will return all rows)
|
|
select * from survey where every(City) = 'london' |
Retrieves items for which city is only London (It will return row having item name T01 and T06)
|
|
select * from survey where every(City) like 'p%' |
Retrieves items for which city is only having city name with pre constant ‘lon’. (It will return row having item name A05 and S02)
|
|
select * from survey where Year = '1981' intersection City is not null order by City desc |
Retrieves all items exported in 1981 and sorts them by City in descending order. (It will return row having item name S02 and T01).
|
|
select * from survey where Year < '2000' order by Year limit 2 |
Retrieves two items that were exported before 2000 and lists them in ascending order. (It will return row having item name S02 and T01. After Click on next button it will return row having item name I04. )
|