Solved

SQL Query Questions - Oracle RDBMS SQL

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Read about achieving the basic levels of HRIS security in the workplace.
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…

773 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