- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
SQL exercises
INTRODUCTION:
In the following sessions you will make use of a database that is already prepared for you to further practice SQL queries. Take a look at the E-R model and data dictionary (see following pages) that are provided and see the skeleton tables for correct spelling of attribute names in your queries. Try to formulate SQL statements for the following questions using your provided database.
I.Queries on a single table using key words such as: AND, OR, IN, BETWEEN, LIKE, NOT
Give a list of owners names (o_name) and year of birth (birth) of owners who were born in 1945.
Who are the owners living in the street named ‘LINETYPE’. List their names (o_name).
Give a list of owners names (o_name) and year of birth (birth) who were born later than 1940 but before 1950.
List the parcel number, area and tax_class of parcels that belong to taxclass U1 or A1.
List the parcel number, area, block number and tax class of all (taxable non taxable) urban parcels.
List the name, civic number, year of birth of all owners whose name includes (begins, ends or contains) the character’S’.
EXPRESSIONS AND FUNCTIONS (appendices):
An SQL command can contain arithmetic expressions. An arithmetic expression is made up of column names and constant numeric values connected by arithmetic operators. You can use any of the following arithmetic operators (+ = add,- = subtract, * = multiply, / = divide). You can use an arithmetic expression in a SELECT clause to retrieve calculated results.
II.Queries on a single table using key words such as: DISTINCT, ORDER BY, GROUP BY, SUM(), AVG(), COUNT(), MIN()
make a list of street names in such a way that all different street names appear only once.
List the name, civic number and year of birth of all owners and display the result in descending sequence ordered by their year of birth.
Make a list of the tax rate, the tax rate minus 0.5 and the tax class of all taxable parcels.
Try to formulate a query that counts the number of parce
您可能关注的文档
最近下载
- 2025天津市红桥区国有资产投资有限公司招聘1人笔试备考题库及答案解析.docx VIP
- 互换性与技术测量..ppt VIP
- 2024年天津市红桥区国有资产投资有限公司人员招聘考试题库及答案解析.docx VIP
- 晋朝PPT课件教学课件.pptx VIP
- 《互换性与技术测量》课件第4章.ppt VIP
- 2023-2025年语文全国中考真题分类汇编 专题19 散文阅读(一).docx VIP
- 新生儿胆道闭锁.pptx VIP
- 2.3《峨日朵雪峰之侧》课件(共30张PPT) 2024-2025学年统编版高中语文必修上册.pptx VIP
- 2021年天津市红桥区国有资产投资有限公司校园招聘试题及答案解析.docx VIP
- 农业信息技术--农业信息技术概述 ppt课件.pptx VIP
文档评论(0)