I want to create report with these conditions

Hello world

I have to table
-First table
SQL > desc std_info
Name Null? Type
----------------------------------------------------------------- -------- --------------------------------------------
ROLL_NUM NOT NULL NUMBER
NAME VARCHAR2 (20)
AGE NUMBER
COURSE VARCHAR2 (20)
LOCATION VARCHAR2 (20)


-The second table
SQL > std_fees desc;
Name Null? Type
----------------------------------------------------------------- -------- --------------------------------------------
NUMBER OF ROLL_NUM
NEIGHBORHOOD VARCHAR2 (5)
NUMBER OF THE YEAR
CLASS VARCHAR2 (20)

-------######--------
The data in the first table
SQL > select * from std_info;

ROLL_NUM NAME AGE LOCATION OF COURSES
---------- -------------------- ---------- -------------------- -------------------
1 ALI 20 END BH
MINISTRY OF HEALTH 2 22 END BH
3 GAYL 30HR BH
4 ABBAS 23 he LH

The second
SQL > select * from std_fees;

ROLL_NUM QUARTER YEAR CLASS
---------- ----- ---------- --------------------
1 Q1 2009 C1
1 Q2 2009 C1
1 Q4 2009 C1
2 Q1 2009 C1
2 Q2 2009 C1
2 Q3 2009 C1
2 Q4 2009 C1

----
I want to create SQL statements which that help me create the report to display Null values for the second table
more explanations, each student must pay each quarter, if he has not paid, its name should appear in the report.
for example on my table.
the student with 1 roll number he paid every quarter except T3 so his name should be on the report and on the report display message Hi missed Q3.
the student with the roll number 2 does not display his name because he has paid quarterly
the student with the roller 3 and 4 numbers must display their name because they did not pay

I don't have your table. So I used the WITH statement to create the fictitious tables. You do not have to use the std_info and std_fees only WITH the clause, you must use is the trim.

If your query would be like this

with qtr
as
(
select 'Q1' quart from dual union all
select 'Q2' quart from dual union all
select 'Q3' quart from dual union all
select 'Q4' quart from dual
)
select t.roll_num, t.quart
  from (
         select roll_num, quart
           from std_info
           cross join qtr
       ) t
  left join std_fees f
    on t.roll_num = f.roll_num
   and t.quart = f.quart
 where f.roll_num is null
 order by 1,2

Tags: Database

Similar Questions

  • It is possible to have boring, signatures of plain text in outlook express? I want to create one with colored text and a photo...

    I figured out how to create a signature in outlook express, but it's a boring, plain text signature.  There is a 'file' option in the tab signatures at the bottom, but I don't know what it is for, and there is no heading 'help' for this option.  Looks like I was able to import a file from somewhere else (has a browse button), but I tried and it doesn't work.  I don't know what .txt file is either...  I want to create a signature colored with diverse text and a picture, but I don't think its possible with this e-mail program, or if it is I can't understand how do.

    Hi Schutzhundgirl,

    It is possible to create Rich Text signatures, but it requires a HTML file.
    I recommend you search the Internet for "create the signature outlook express" for more information on creating Rich Text signatures that Microsoft provides no support for the creation of HTML documents.

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Creating reports with JasperReports

    Hello guys,.

    I need to generate different reports (PDF format) in my apex application. I read about the use of reports jasper in different forums, so I tried to use it for my reports.

    I created the Group 6.1 of jasperreports-Server tomcat version and installation of postrge. Everything worked well and I can connect to the web interface of my reportsserver. I have also created a test with the iReportDesigner report.

    But now I don't know what is the next step.

    How do I load/put the file on my server? What im needing file, .jasper or .jrxml?

    And how to call the apex/Oracle report? Do I have to install some packages, or something?

    IM using the oracle database 11g 2 with EPG and apex version 4.2.6 on 13.2 openSUSe.

    Kind regards

    pleNn

    Hi guys,.

    I'm sorry about the broken links. I already wanted to update the site, but never got around that.

    Please use this version here: Index of /downloads/free_tools/JasperReportsIntegration/2.1.0

    Already working on a new version to support JasperReports 6.0.3... but takes a bit.

    Thank you

    ~ Dietmar.

  • I want to create layouts with a starter design using JS in CS6 strengthened an exact distance across, then (the Group) down an exact distance.  What methods are available to do this, please?  Sorry I'm new to JS/OOP and it is stolen (mostly) code.

    I am trying this:

    app.activeDocument.copy;

    var newItem;

    var docSelected = app.activeDocument.selection;

    If (docSelected.length > 0) {}

    Create a new document and move the items selected to her

    var newDoc = app.documents.add ();

    }

    If (docSelected.length > 0) {}

    for (i = 0; i < docSelected.length; i ++) {docSelected [i] .selected = false;}

    newItem is docSelected [i] .duplicate (newDoc, ElementPlacement.PLACEATEND);.

    }

    }

    docRef var = activeDocument

    iCount = docRef.groupItems.length var

    If (iCount > 0) {}

    graphRef = {}

    create an object for the step/repeat

    for (var i = 0; i < iCount; i ++) {}

    graphRef = docRef.groupItems [i]; graphRef.selected = true ;}

    }

    ensures the selection of all items that have been copied to the new page

    OK here - but what then?  no idea what the settings are.

    but know those shown is false.

    for loop() {}

    graphRef.duplicate(0,stepac*);?

    as many times as necessary

    }

    If it worked

    next step would be to group the result

    and copy it down in another loop .

    as many times as necessary

    var stepac is my defined distance to cross

    ... unless there is a better method to use

    to get the same result.

    Sorry if I badly copied something here, media, etc.

    Screen Shot 2015-07-02 at 11.37.59.png

    "Here's one I prepared earlier".

    General information:

    I have a label to the step and repeat program (NOT of Esko stepX) which

    used to work fine in previous versions of CS but now regularly

    CS6 crashes.  Before that, I used to use actions, but need one for

    Every drill that we have (about 2500).  stepX was formerly offered to us for a great $ 4 figure.

    So I decided to try to "roll my own" script to work with my own details tailor .csv files.

    No JS experience before last week, but worked a

    Basic procedure called Arcplus DOS program for

    25 years... any assistance would be most welcome

    Hi, Monika

    I had seen that you had posted something on the subject of step and repeat before.

    Frankly, I can do that in Illustrator standing on my head: it's part of my job and I

    fact for years.  The point is to automate to save time and effort and avoid mistakes.

    I used actions and a plug-in purchased from a developer, but the plug-in is not

    as functional under CS6 and tends to crash the program and you would need an action

    for every cut we have - at least 2500.  You can buy Esko stepX for a sum of four thick numbers

    but I just less expensive than that - if I can do it, and I think I can by trials, errors and effort.

    Thanks for your advice - I'm sorry, but it's not to the point.

  • How to create the report with check box (Update, Delete) operations

    Hi all

    I want to create report with check boxes.

    I created it based on the user's manual. But do not delete records. Please help me

    Apex. Oracle.com

    workspace: APPSGURU

    RAMBEAU. [email protected]

    P.W:rag$ 123

    Application:36232

    Page: 14

    Thank you and best regards,

    Rambeau

    Raghu,

    Request for check line deleted successfully.

    made some changes in the removal process.

    Leave.

  • Create the report with the structure in obiee 11g?

    Hello

    I want to create report without data, it has the structure. the data in this report, add in the future.

    I want to show the lines of value null & coulmns in the report.

    For example, I created the table name as cs_ue_lf table.

    structure as follows. I did not insert a line any.

    err11.jpg

    I have check the table. There is no data

    err12.jpg

    I created RPD and added to the em.

    I chose the field as uncleared effects

    Drag the columns of criteria.

    err13.jpg

    In the results, I didn't not even structrue in report.

    I get the error message as 'specified criteria result no data'.

    err14.jpg

    My project requirement is

    create a report without data. only one structure (coulmns). Report have only column names. data inserts in the future.

    Please help me.

    To do this, I put properties column as "include null values.

    I tried. But I did not. Is this possible?


    Please help me,

    Thanks in advance,

    A.Kavya.

    What:

    insert into cs_ue_lf values ('foo',0,0,0,0,0)
    

    Or even a kind of Cartesian join in the RPD against a table to produce a lot of dummy data

    I wonder: why do you need this?

  • I am very new to the software online, please bear with me.  My question is this: I want to create my own designs I want to use for the manufacture of silk scarves.  I have to provide these designs of production of silk professional so they

    I am very new to the software online, please bear with me.  My question is this: I want to create my own designs I want to use for the manufacture of silk scarves.  I'll have to provide professional silk production houses these designs so that they can use my design patterns to create these scarves in silk for retail customers.  What application Adobe should I consider, and I can get a first experimental?  Thanks a lot for your help.  Looking forward to your response.  Best regards, Sunaura

    Hello

    You can try to use Illustrator or Indesign.

    Desktop publishing software | Free download Adobe InDesign CC trial

    Hope that helps!

    Kind regards

    Sheena

  • How to create and process the Iinteractive report with the records selected in 4.1

    Hello

    I want to have an interactive report that will have a check box that can be selected for processing batch in front of each line. Is it possible to do?
    If there is, please provide a method to deal with these cases, i.e. for each selected record, create a new record on another table and update the record as well as the Treaty.

    Thank you

    Published by: yannisr on July 13, 2012 05:58

    To do this, you must consult the documentation for the APEX for two things

    Create a checkboxes using APEX_ITEM API

    How to reference these boxes in a process to send

  • How creat a summary report with txt.

    Hi all

    I want to create a summary of the report with .txt, and I disabled the feature of report generation in teststand.

    I created a complex sequence, includes some sub-sequences, example: the UUT is tested on three different temperatures and four different voltages conditon. So I creat three subsequences (different temperatures) there are four steps (different voltages), then mainsequence invoke three subsequences to excute test.

    I only want to get the fail-no summary, include: name of the step-fail, status

    How do I? Thank you very much

    You can use Parameters.Step.Name to get the name of the step failed. You can also use something like Parameters.Step.StepType.Name is 'NI_MultipleNumericLimitTest' to the different types of filter steps.

    To the extent where the string any failure...

    You can check RunState.CallStackDepth to see callers how you deep. Based on this information, you can use RunState.Caller.Caller. (in sequence but of many appellants deep, you are). RunState.Step.Name or. Sequence.Name

    So if the CallStackDepth is 1, you can only use a caller. If it was 2, need to recursively would you use 1 caller and then 2 appellants and so on.

  • I first Pro CC and you want to create DVDs. I understand this need Ii Download Premiere Pro CS6 (with rappel) I find Premiere Pro CS6 in My creative Cloud window. BUT... it only allows me to install. He said "up to date". There is NO installation b

    I first Pro CC and you want to create DVDs. I understand this need Ii Download Premiere Pro CS6 (with rappel) I find Premiere Pro CS6 in My creative Cloud window. BUT... it only allows me to install. He said "up to date". There is NO button install. How to do it?

    Previous through Cloud http://helpx.adobe.com/creative-cloud/help/install-apps.html#previous

    - and if you have Cloud application manager 2015 https://forums.adobe.com/thread/1906752 of difference

    Instructions again, cloud or version https://forums.adobe.com/thread/1992717 serial number

    -a of notes on different versions of cloud and step by step on these differences

    -contains information about the separate library download which is necessary

  • Query SQL Report with condition (multiple settings) at the point of the apex?

    Hi all

    I have a small problem and cannot find a solution.

    I need to create reports based on a query, SQL or I.R. Nothing hard here.
    I need to add the WHERE clause dynamically with javascript to an element of the Apex.
    Even once is not very difficult. I set the agenda of the Summit, put my query like this "SELECT * FROM MYTAB WHERE COL1 =: P1_SEARCH" then I call the page by setting the P1_SEARCH value. For example, COL1 is rowid. It works very well.

    But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
    (no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."

    I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
    but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.


    How can I do it please?

    Thanks for your help.

    Max

    mnoscars wrote:

    But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
    (no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."

    I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
    but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.

    For a standard report, see + {message identifier: = 9609120} +.

    For an IR - and improve safety by avoiding the risk of SQL Injection, use a collection containing the values in a column instead of a CSV list:
    {code}
    SELECT * FROM MYTAB WHERE ROWID IN (SELECT c001 FROM apex_collections WHERE collection_name = "P1_SEARCH")
    {code}
    (Please close duplicate threads spawned by your original question.)

  • want to create Searchbar on SQL report

    Hi evryone...
    I had created SQL report in my application... But I coould nt find option of bar of serch who create generally with interactive report... so if I want to create serchbar in my SQL report so how could I able to do this thing?

    Thanks in advance

    Rommy

    Hi Rommy,

    Take a look at my first post in this thread: Re: option search for a page of REPORT FORM AND.

    Concerning

    Andy

  • From time to time my roommate ends up getting new toolbars with buttons or apps that I don't want. How I eat these?

    From time to time my roommate ends up getting new toolbars with buttons or apps that I don't want. How I eat these? Thank you!

    Great idea! Thank you!

  • I have a distribution list large email I want to create, BUT I don't necessarily want to put in my Contacts and all this My Contact list of people synchronized upward with my iPhone. Can I create a group without their input in my Contacts?

    I have a distribution list large email I want to create, BUT I don't necessarily want to put in my Contacts and all this My Contact list of people synchronized upward with my iPhone. Can I create a group without their input in my Contacts?

    You can create another account on your mac.

    You can open an account with mailchimp.

    There may be a limit on the number of emails you can send per day. No idea about the number, but I've heard as low as 200 per day.

    R

  • I want to create a 2 cells in demand for numbers, the 1st cell is a dropdown menu with items of text, when choosing an item, that it would be represented by a numeric value in the other cell. How can I do?

    I want to create a 2 cells in demand for numbers, the 1st cell is a dropdown menu with items of text, when choosing an item, that it would be represented by a numeric value in the other cell. How can I do?

    You can use vlookup() like this:

    (1) crate a table like this:

    the first line is a heading row

    the first column contains the same list of items in the context menu

    the second column contains the corresponding values

    name of the table 'value '.

    In another table (where the pop-up menu), you can use the table of choice of 'Value' like this:

    create a drop-down list in cell B1

    Select cell C1 and type (or copy and paste) the formula:

    = VLOOKUP (B1, Value::A:B, 2, 0)

    short hand for this is:

    C1 = VLOOKUP (B1, Value::A:B, 2, 0)

    now change the pop-up to display the value in the change of cell C1

Maybe you are looking for

  • awesome bar does not display existing addresses

    Firefox itself upgrade just esr 38.2.0, and when I type in the awesome bar, it brings not existing more addresses. For example. I used to type s in the bar, and he would show slashdot.org, as it was the most common s that I visited. Now, it's just co

  • Cannot close the nori.exe

    My computer wouldn close and a message came that said 'nori.exe couldn t close' and me gave options to end now or cancel, I pressed the end now and the message disappeared, but stayed on the screen with no icons on the desktop wallpaper.  I had to re

  • VGA compatible video controller

    Nice day The HP Elitebook 8530 laptop video drivers does not seem to work. This is for Windows XP. The details of the product I see is PCI\VEN_1002 & DEV_9591. Can someone help me please get the correct driver please? I tried 3 different drivers on t

  • Split x 2 SSD upgrade

    Is it possible to upgrade the 128 GB SSD in the x 2 Split? I would like to increase the size of storage. Thanks in advance.

  • Return and replace still Images

    Anyone else having issues with render and replace still images (rgb JPEG and png in my case)? I choose a predefined ProRes 422 and ask to place next to the original media new media. It allows me to click through to the guests, but in fact, nothing ha