Solved

SQL Query Questions - Oracle RDBMS SQL

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 57
average of calculation (TSQL) 4 26
SQL - format decimal in a string 5 39
SQL Syntax Grouping Sum question 7 24
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

856 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