[center]Hi everyoneNoticed you are able to help with a similar query and were hoping you could assist with mine, I need to find;Card number and date of borrowers earliest loan for all borrowers who had a loan before the 03/Jan/2004 OR who borrowed a book published before 1920 So far my query looks like this but it is bringing back date out after 03/Janselect cardno, min(l.dateout)from loan l right outer join book bon l.isbn = b.isbnwhere b.yearpublished < '1920'or l.dateout < '03/Jan/2004'group by cardnoorder by cardno;[/center]Any help would be appreciated as I am new to this, Thanks
↧