You are on page 1of 1

wiczenie 1

Zad.1
SELECT title,title_no FROM title
Zad.2
SELECT title,title_no FROM title Where title_no=10
Zad.3
SELECT member_no,fine_assessed FROM loanhist Where fine_assessed between 8 and 9
Zad.4
SELECT title_no,author from title WHere author='Charles Dickens' or author='Jane Austen'
Zad.5
SELECT title_no, title from title where title like '%adventures%'
Zad.6
SELECT member_no,fine_assessed,fine_paid FROM loanhist Where fine_assessed > fine_paid
Zad.7
SELECT DISTINCT city,state from adult order by city asc
wiczenie 2
Zad.1
SELECT title FROM title order by title asc
Zad.2
SELECT member_no,isbn,fine_assessed FROM loanhist where fine_assessed IS NOT NULL
SELECT fine_assessed*2 AS DOUBLE_FINE from loanhist where fine_assessed is not null
Zad.3
SELECT firstname+middleinitial+lastname As email_name FROM member where lastname =
'Anderson'
SELECT lower(firstname+middleinitial+substring(lastname,1,2)) As email_login FROM member
Zad.4
SELECT 'The title is:'+title+',title number:'+str(title_no) FROM title

You might also like