Commit 3381bc63 authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

README.md

0 → 100644
+15 −0
Changes for README.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
## Example files for the title:  
  
# SQL: Beyond the Basics, by Guy Vaccaro
  
[![SQL: Beyond the Basics, by Guy Vaccaro](http://akamaicovers.oreilly.com/images/9781771373449/cat.gif)](https://www.safaribooksonline.com/library/view/title/9781771373449//)
  
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
  
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
  
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
  
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <permissions@oreilly.com>.
  
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.
+8 −0
Changes for SQL - Beyond The Basics - Working Files/Chapter 1/Basic_Select_Syntax.txt: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
SELECT 		FIELD(S)
FROM 		TABLES

JOIN 		OTHER TABLES
WHERE		CRITERIA
GROUP BY 	ANY GROUPS
	HAVING	FILTERS FOR GROUPED VALUES
ORDER BY 	SORT ORDER
 No newline at end of file
+17 −0
Changes for SQL - Beyond The Basics - Working Files/Chapter 1/SQL DML Examples.sql: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
--INSERT
insert into sample(cid,cname,ctown)
	values(1,'Guy Vaccaro', 'Someplace Else')
	
select * from dbo.sample	

--UPDATE

update dbo.sample
set cname='Gaetano Richard Vaccaro'
where cid=1
select * from dbo.sample	

--DELETE
delete from dbo.sample

select * from dbo.sample	
+20 −0
Changes for SQL - Beyond The Basics - Working Files/Chapter 1/SQL Examples.sql: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
select * from tblcontacts

select fn, sn, town from tblcontacts

select fn, sn, town from tblcontacts 
order by region

select fn, sn, town from tblcontacts 
where region ='West Yorkshire'


select Region, count(contactid) as Contacts  from tblcontacts
group by Region
having count(contactid)>2
order by count(contactid) desc

select fn, sn, M.MaritalStatus from tblcontacts C
inner join tblMaritalStatus M
on C.maritalstatus=m.maritalstatusid
+0 −0

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

Loading