Solved

SQL Query Questions - Oracle RDBMS SQL

Posted on 2009-07-02
3
343 Views
Last Modified: 2013-11-16
What does this mean?

1. SELECT title || CHR(10) || pubdate FROM books;

CHR() is new to me...

2.  Is below query correct? If no, why?

SELECT DISTINCT customer, DISTINCT order FROM orders;

I will google, but your help wouldn't harm.
0
Comment
Question by:F-J-K
  • 2
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 24761056
>CHR() is new to me...
CHR(x) returns the string with the character specified by the asci code X passed as argument. character 10 is the newline.

>2.  Is below query correct? If no, why?
no. DISTINCT comes only once, directly after the SELECT.

this would be correct syntax.
SELECT DISTINCT customer, order FROM orders;

however, you need to clarify what exactly the query should do
0
 
LVL 1

Author Comment

by:F-J-K
ID: 24761074
Thanks. These are answers of multi choice questions
0
 
LVL 1

Author Closing Comment

by:F-J-K
ID: 31599086
Good
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now