Repeat the data each time, but with a different Description


Hi gurus

I need your help once more. I have the following data.

Data

WITH folders

(

SELECT 100 id1, id2 200, 300 id3 FROM Dual

UNION ALL

SELECT 200, 200, 300 OF THE double

UNION ALL

SELECT 10, 200, 300 OF THE double

)

Select * from documents;

The query result

ID1 ID2 ID3

100 200 300

200 200 300

10                  200                300

Desired output

Id1 ID2 ID3 Description

Car 100 200 300

Car 200 200 300

10                  200                300               Car

bike 100 200 300

bike 200 200 300

10                  200                300               bike

100 200 300 cycle

200 200 300 cycle

10 200 300 cycle

---------------------

Rule: -.

All lines display the records online repeats against car, bike and Cycle.

I know if I can use the union then I can achieve my goal, but I wonder if someone suggests another method instead of the union.

Thanks in advance...

It is is done with an unrestricted join, Cartesian join said.

WITH
    Record(id1, id2, id3)
AS
    (
     SELECT 100, 200, 300 FROM Dual UNION ALL
     SELECT 200, 200, 300 FROM Dual UNION ALL
     SELECT 010, 200, 300 FROM Dual
    ),
    Item(Description)
AS
    (
     SELECT 'Car'    FROM Dual UNION ALL
     SELECT 'bike'    FROM Dual UNION ALL
     SELECT 'Cycle'    FROM Dual
    )
SELECT
    Record.id1,
    Record.id2,
    Record.id3,
    Item.Description
FROM
    Record,
    Item;

Basically, each record in the FROM clause is included (except for the exclusion of the WHERE clause). When there is more than one table listed in the FROM clause, each record in one TABLE is associated with each record in TABLE b, creation (a * b) records. WHERE clause is typically used to limit the records with the records in the TABLE b correspond to a criterion of the TABLE has.

[mug shot] It's one of the thing mask ANSI join syntax, leaving many without a clear understanding of the basic principles of the FROM clause. [/rant]

Tags: Database

Similar Questions

  • Display the date and time, but hide seconds

    In grid mode, I like to have the date and time indicated on each slide, but I find that see the seconds, a distraction.

    Anyone know of a way to display hours and minutes but NOT seconds?

    Thank you

    No option, unless you want to stick the tape on the seconds on your screen

  • Repeat the data n times

    Hello

    I stuck in a number of "simple".

    I want to reiterate my time n given according to a value in my xml

    With

    rowset <>
    < ROW >
    < COMPONENT > is < / ITEM >
    < NUMBER > 3 < / COUNT >
    < / ROW >
    < ROW >
    B < ITEM > < / ITEM >
    < NUMBER > 5 < / COUNT >
    < / ROW >
    < / LINES >

    I want to get

    A
    A
    A
    B
    B
    B
    B
    B

    My approach to use

    <? for-each: LINE? >
    <? for - each:xdoxslt:foreach_number($_XDOCTX,1,COUNT,1)? >
    <? Agenda? >
    <? end foreach? >
    <? end foreach? >

    fails, because the QUESTION is not displayed (like <? / ITEM? > and others).

    Concerning
    Rainer

    LON
    You can declare the variable of context and take the context of the line in and do what ever you want to do.



    --

  • BlackBerry Z3 can I create a Blackberry ID using the same email address, but with a different password?

    I use 2 phones and I am ready to create a new blackberry on the 2nd ID, but it requires an email address and I don't have that one email address that I use for everything. I want to know if it is possible to create a new BBID with the same e-mail address but different password. The main thing is I want both phones to be active and fully functional, but I don't have a single address email and I prefer not to create another email address, because I love all of my emails in one place rather then having 2 email addresses. I don't want any phone be disabled. I do not fear one of the BBM is turned off, as long as at least one works. Both phones are a Blackberry Curve 9320 and a Blackberry z10, which is one waiting to be activated.

    No this is not possible. The BBID, you use is associated with the device, you are using, the e-mail address is the user and cannot be associated with two BlackBerry smartphones to consider it time of the password.

    I suggest that you create a new e-mail address for the sole purpose of using it as a BlackBerry ID.

    www.bbid.com

  • BlackBerry Z10 can I create a Blackberry ID using the same email address, but with a different password?

    I use 2 phones and I am ready to create a new blackberry on the 2nd ID, but it requires an email address and I don't have that one email address that I use for everything. I want to know if it is possible to create a new BBID with the same e-mail address but different password. The main thing is I want both phones to be active and fully functional, but I don't have a single address email and I prefer not to create another email address, because I love all of my emails in one place rather then having 2 email addresses. I don't want any phone be disabled. I do not fear one of the BBM is turned off, as long as at least one works. Both phones are a Blackberry Curve 9320 and a Blackberry z10, which is one waiting to be activated.

    No this is not possible, the e-mail address you used your BBID, is associated with the device that you use it on. It is also the BBID username. And cannot be used on another device, no matter that there is a different password.

    I suggest that you create a new e-mail account, just for the sole purpose of using it as a BBID.

    www.bbid.com

  • Insert the date and time in a model of Pages 5,6

    When I open one of the default templates provided with 5.6 Pages (for example, a letter), I noticed that the document opens with the current date correctly inserted. Yet when I create my own model and save it as a document template (if in my models or elsewhere) the date stamp is no longer up-to-date. Whenever I have create a new document from the template, it gets stuck on the date that I created the template. This means that I have to click on the date each time and select 'Set today' (it's easy to forget).

    My understanding is that the inserted date stamps have is no longer an option of automatic update in Pages 5.x, so I was surprised to see their update automatically in the default templates provided with Pages. How Apple did this, and how do I get the same effect in my own registered designs?

    Pages v5.6.2 and OS X 10.11.5.

    I do not believe that something has changed with the way that Pages manages the dates that we insert into documents, or our new custom templates. The date will not automatically update for me when I create a new custom with a date of month template or a new document with a stamp of date/time in it. In both cases, wait 15 minutes, when I open it or the other, the date of the month in the model does not change and or don't have time in my document on my desktop.

    It stays with v5.6.2 Pages, if you want a date automatically update a model, or in a document current/Sour, you need to use a single table cell, without borders, which is the date of formatting, and has a single equation: = now.

    What I can not explain, for example, is the model of research paper that uses a date inserted regular field current date will appear automatically when opened for the first time in a new document. There are no tables in this model. There is no new parameters in v5.6.2 of Pages that can explain this behavior. This does not work for the user created templates. Pages could have been programmed to update only the date in the models grouped fields, but not user models - and if that were true, then it conforms to the demi-cuite nature in all of this application.

  • I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when it is inserted and

    I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when inserted and always reflect when the stamp was created and the name is always my name. I try to have the user name or the username inserted so that he who is the insertion of the postmark of the stamp automatically inserts their name and what day and time the stap is inserted. I can't get this dynamic stamp works like the default Adobe Acrobat Dynamic stamps. Can anyone help with this one. Thank you

    Have you created a page template for your stamp? Did name the template of the page correctly? It's the right format:

    #InternalStampName = display name of stamp

  • Windows Media Player 11 Date added function - please stop repeating the date for EACH file.

    I have been using Media Player 9, decided to upgrade to Windows Media Player 11, and the only thing I can not stand on Player 11 is how it sorts Date added media files.  In Player 9 when I chose the column Date added, the program would list all the files on a given under a SINGLE date.  With Windows Media Player 11 it lists EACH file with a date so that instead of see Tuesday, December 14, 2010 once and then listing all of the files under it, I see Tuesday, December 14, 2010 about twenty times.  I download podcasts once a week and dump it on my phone, but it's a worry now.  Is it possible to stop Windows Media Player 11 to repeat the date again and again and force him to the date that the list only once?  Think back to Player 9.  Alex

    Hi Alex103,

    It's design in Windows media player 11 and it is also included in Windows Media player 12.

    However, you can uncheck this option, follow the steps below:

    a. open windows Media player

    b. right-click on one of the sorted column

    c. click Choose column

    d. uncheck data added

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need to view daq reads per second but only to record a reading every 10 minutes. I would also like to record the date and time, at the same pace. Need help

    Need to show daq reads per second, but only to record a reading every 10 minutes, need help

    You are also looking to taste to 1 Hz data acquisition?

    My approach would be to use the DAQ acquisition to time your loop display reading each acquisition, then use the loop counter to control the logic of your writing to file.  For 1 Hz and 10 minutes write I would use 'quotient and remainder' I / 600; If rest = 0, then write the data point.

    For the date and time, under Calendar palette use the time get in seconds food a DateTime Format to a string.

  • Print the PDF document with the name and the date and time of printing from the printer

    Hello

    I am fairly new to this...

    I have a PDF document and when I print it, I want the name of the printer and the print date/time to be shown on the printer output.

    I have several printers (some common and some on the network) and do not necessarily use the default. I would like the name of the printer used to be printed on the document.

    With : var = this.getField ("Printer"); h.value = app.printerNames; I am able to get the list of all available printers, but I just need one that is used.

    For the date and time, using the var f = this.getField ("Today"); f.value = util.printd ("j/mmm/yyyy", new Date()); gives me the time of when the document is opened, not when the document is printed. (or maybe I'm missing something?)

    I guess the question of the date/time is not major, because there is usually not much difference between the time that you open the document and the time you print it.

    I'm more interested in the name of the printer.

    I use Acrobat 9 Pro to edit my PDF document.

    Can someone help me please?

    Thank you!

    The name of the printer is a property of the PrintParams object. This property is updated before the PDF is sent to the printer and the name of the printer selected catalogue user interface is available in the ' Will Print' event.»

    In the document 'Will Print' action, you can use:

    pp var = this.getPrintParams ();
    this.getField('PrinterName').value = pp.printerName;

  • Need to insert the Date and time with AM or PM

    StartDate form has ' 25/07/2006' and Starttime "13:07.
    I need to add this field in the database to display the Date and time with the AM or PM. But the result I get is false.
    <! - concatenate fields - >
    "< cfset Startdate = #Startdate # &" "& #starttime # >.

    < cfset startdate = #DateFormat (CreateODBCDateTime (Startdate), ' mm/dd/yyyy hh: mm: tt ') # >
    Here is my production. This is not the AM or PM conversion part of the chain.

    25/07/2006 01:07 am

    My database is SQL 2000

    You use any of dateformat. The createodbcdatetime sends the correct your DB value if you do it right.

  • Problems with the date and time - have to reset the date & time on reboot

    original title: problems with the date and time

    Whenever I turn on my computer (Windows XP 2002) I click on F2.  Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer.  Can someone tell me what I need to do?

    You need to replace the battery in time clock (RTC) real of your computer.  It can also be called the CMOS or BIOS battery.

    Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner.  There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.

    Whatever the expense, almost all of these batteries are easy to replace.

    To get help, post back with the brand and model of your computer.

  • Date and the resets each time I switch off the PC (usually back to November or December 2001).

    Here's what I've tried:

    -Replace the battery in the motherboard (twice)
    -Updated BIOS
    -Retstored system to a previous date
    -Reset the date and time of dozens of times by using the control panel and system control

    What the hell is happening?  Computer works fine except the this?

    Given that the problem occurs when you shut down the computer, you know it's a motherboard problem and not a software problem (Windows). Since you have already replaced the battery CMOS and flashed your BIOS, there is nothing more, that you can do. Your motherboard is probably at its output. If it is an old computer or out of warranty, it will not be worth it to replace the motherboard. I recommend to keep your backup data regularly and either live with it or replace the machine. MS - MVP - Elephant Boy computers - don't panic!

  • Terrible problem with the dates and time UTC

    I have a countdown, but he seems to not work in other time zones. I think that the problem is related to my conversion to time UTC. If the end date is in UTC, so I have to convert the date now time UTC, too, but I couldn't find a way to do it. Here is my code - count is off because the end date is in UTC, but today's date is in local time. I could really use some quick help (before my end date can't!).

    Well, I have a solution, and it was much easier that it seemed to be.

    All the asp file has to say is:
    <%response.write FormatDateTime(now(),0)%>

    Then the as3 code is:

  • given the date and time not set when computer starts. also have a problem with typing

    by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?

    on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?

    You may have a failed in your motherboard CMOS battery.

    It's a battery power supply NET, size piece that keeps your system settings when your computer is off.

    They cost about $5 to replace.

    http://www.computerhope.com/issues/ch000239.htm

    How to replace the CMOS battery in the above link info.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Settings Bluetooth on iPhone crashes settings

    When I enter the settings-> Bluetooth on my iPhone, application settings accidents immediately.  If I disable bluetooth via the control center, I can open the Bluetooth settings, for example, to associate an additional device.  But if Bluetooth is al

  • My search bar does not work

    I just installed Firefox 4. When I get something in my search bar on the home page... nothing happens. I tried to hit enter and click on the search button. I also waited and waited. Nothing. I enter the address or go to a bookmark toolbar on a new si

  • 3110CT: problem starting LI_

    Hi all.I searched on the web and the forums, but found no clue to my problem. My 3110CT suddenly refused to start after the password dialogue. The only thing shown is a white screen and the letters LI followed by a flashing underscore cursor. Each ke

  • Is there a way to automatically update iOS applications during synchronization?

    I noticed that with iOS 9.2.1 apps that I've updated in iTunes don't are not automatically updated in my devices iOS during the synchronization process. I need to scroll through the entire apps list, select the update apps I want to transfer my devic

  • Creation of stand-alone executable file with similar library files without errors of link

    I have an Executive Test that is run on two different test systems. Each stand has another card ARINC429. The old card use 429dll32.lib, while the most recent map use pci429.lib. Test Exec code only loads a single library file (using LoadExternalModu