Solved

SQL Query Questions - Oracle RDBMS SQL

Posted on 2009-07-02
3
344 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with SQL field formatting 3 20
dbcc checkdb datawarehouse 2 41
SQl Server 2008 R2 - Case When Null still equals NULL 10 27
Remove alpha from alphanumeric 4 60
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
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…

895 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

11 Experts available now in Live!

Get 1:1 Help Now