?
Solved

SQL Query Questions - Oracle RDBMS SQL

Posted on 2009-07-02
3
Medium Priority
?
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
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…

770 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