Need some expert to check the effectiveness of my Query

Hi,
I am learner in Oracle, and i was given the scenario below and was asked to write queries for that. I have written the queries, I want someone to confirm if my queries satisfies the required scenario and gives proper output.
Scenario: You have been employed as the database administrator in a software development team for a Book Store. The Database is built, as is the GUI to run the software and it is your job to implement the required SQL Queries to communicate the Database with the GUI. You will be using the database “Bookstore”; this database is available from INB122 blackboard unit page. The database has the following four tables as shown below. Primary key of each table is underlined.
Publisher(publisherCode, publisherName, publisherCity, publisherState)
Author(authorNumber, authourName, authorFirst)
Book(bookCode, bookTitle, publisherCode, bookType, bookPrice, paperback)
Wrote(bookCode, authorNumber, sequenceNumber)
The Queries needs to be broken into two components. The first involves the development of SQL queries that you will test directly against the database. These will serve as the basis for the second component which will involve modifying the original queries to allow for non-static fields/conditions.
For example, if the Query was to list all the books that are a set price (say $30), you would have
SELECT bookTitle FROM Book WHERE bookPrice = 30;
Here the price ($30) is something that the non-static GUI will be allowed to vary and
consequently would take the form:
SELECT bookTitle FROM Book WHERE bookPrice = ?;
Question 1:
--List the titles of all Books that are in a given price range, which are a given book type
--and are printed by given publisher.
--Part 1 Test Case = $40 - $60, HOR, Gale
SELECT bookTitle from book b, publisher p
WHERE b.publisherCode = p.publisherCode
AND b.bookPrice BETWEEN 40 AND 60
AND b.bookType = 'HOR'
AND p.publisherName = 'Gale';
SELECT bookTitle from book b, publisher p
WHERE b.publisherCode = p.publisherCode
AND b.bookPrice BETWEEN &minpricerange AND &maxpricerange
AND b.bookType = '&bookType'
AND p.publisherName = '&publisherName';
Question 2:
--List the titles of all Books that are in a given price range, which are written by a given
--author and are printed by a given publisher.
--Part 1 Test Case = $20 - $30, Smith, 'Batman Books'
SELECT bookTitle from book b, author a, wrote w, publisher p
WHERE b.bookcode = w.bookCode
AND w.authorNumber = a.authorNumber
AND b.publishercode = p.publisher code
AND b.bookPrice BETWEEN 40 AND 60
AND a.authourName = 'Smith'
AND p.publishername= 'Batman Books';
SELECT bookTitle from book b, author a, wrote w, publisher p
WHERE b.bookcode = w.bookCode
AND w.authorNumber = a.authorNumber
AND b.publishercode = p.publishercode
AND b.bookPrice BETWEEN &minpricerange AND &maxpricerange
AND a.authourName = '&authorname'
AND p.publishername= '&publishername';
Question 3:
--List the titles of all Books that are a certain book type, which are written by a given
--author and are printed by a given publisher.
--Part 1 Test Case = ART, Smith, 'Batman Books'
SELECT bookTitle from book b, wrote w, author a, publisher p
WHERE b.bookcode = w.bookcode
AND w.authornumber = a.authornumber
AND b.publishercode = p.publishercode
AND b.bookType = 'ART'
AND a.authourName = 'Smith'
AND p.publishername= 'Batman Books';
SELECT bookTitle from book b, wrote w, author a, publisher p
WHERE b.bookcode = w.bookcode
AND w.authornumber = a.authornumber
AND b.publishercode = p.publishercode
AND b.bookType = '&bookType'
AND a.authourName = '&authourName'
AND p.publishername= '&publishername';
Edited by: Woyswer on May 8, 2012 3:49 AM

>
I am learner in Oracle, and i was given the scenario below and was asked to write queries for that.
I have written the queries, I want someone to confirm if my queries satisfies the required scenario and gives proper output.Called "testing" - and we shouldn't be testing homework.
Your queries look fine, but since you haven't provided any CREATE TABLE and particularly
INSERT INTO TableName VALUES...
Scenario: You have been employed... <snipetty snip>In future, if asking such questions, please provide such statements with
tested data - i.e. the INSERT's will work.
Oh and BTW, this is a volunteer forum - messages marked "Urgent" are a breach
of etiquette.
Paul...
Edited by: Paulie on 07-May-2012 23:09

Similar Messages

  • Need some help to unlock the Ipad. Cannot contact the previous owner he is in the shelter and I do not know were. After I restore the Ipad is asking that the previous owner has to remove it from his account

    need some help to unlock the Ipad. Cannot contact the previous owner he is in the shelter and I do not know were. After I restored the Ipad is asking that the previous owner has to remove it from his account

    Nobody on these boards or at Apple will unlock that device for you. Sorry.
    (117810)

  • Need some help here on the proper settings for quicktime exporting from imovie that won't degredate the footage from my handycam

    need some help here on the proper setting for quicktime exporting that won't denegrate my footage from handycam canon fs200

    What are the existing settings iMovie?
    Al

  • Hello, I need some help on renaming the title on mi web pages!

    Hello, I need some help on renaming the title on mi web pages! appear to be locked by the template and I would like to know if is posible rename each page with diferent title? Thanks,

    @ Gary: No, there is no need to specify an editable region in the page title.
    If you make a template from a page, by saving it as a template (using "save as template"), the page title is automatically made editable.
    @ Jesus: if you look into the code of your template or of any childpage, it should read like this:
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Mi PageTitle</title>
    <!-- TemplateEndEditable -->
    meaning that the page title is indeed editable.
    If it does not look like this, something went wrong.
    Maybe do a little test, save your page as a template and see if the code reads as above.
    It is important that you keep your templates in the Templates folder in your root folder
    Do not move the folder or change its name, otherwise it will not work.

  • My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem need some but where is the rest of my storage being used?

    My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem needs some but where is the rest of my storage being used?

    Hi CPI Pierre,
    You can determine what is using the memory in your iPad Air by looking at Settings > General > Usage > Manage Storage.
    If you are having issues with insufficient memory you may want to troubleshoot using the steps in this article -
    iOS: "Not enough free space" alert when trying to sync - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Need Some Help Here From The Pros....

    Hi all...Im new here you see. I have some questions here..
    1) May I ask if anyone could just tell me how to actually create a partition like Windows do in Mac OS? I need the partition to do my backups and save some of my important documents.
    2) Can we actually create a password to secure certain of my files so that anyone wants to browse it will have to enter the password? Is it possible to do that?
    3) Im also trying to use Visor(i cant remember the name, it's a software to enable Mac to run windows without the boot camp) but i tried on my friend's Macbook, I cant use the MSN camera function... Anybody have any idea??? Or it's not compatible with the camera built-in.
    4) I want to use "3D Studio Max", its it compatible with Mac OS??? and will it be laggish if i uses macbook 13" white?
    Please help....

    Hi!
    1) May I ask if anyone could just tell me how to actually create a partition like Windows do in Mac OS? I need the partition to do my backups and save some of my important documents.
    With your external drive attached, open Disk Utility, found in Applications/Utilities. Choose your drive on the left, and use the Partition tab to set up the number and type of partitions. Partitioning will delete all data on the drive.
    2) Can we actually create a password to secure certain of my files so that anyone wants to browse it will have to enter the password? Is it possible to do that?
    Don't forget that the Mac, just like Windows, is multi-user. You can set up a user for yourself and one for guests or specific people. Nobody can see anybody else's files. You can lock your computer when you go away from the desk if you want absolute privacy.
    Or, you can create an encrypted disk image (also using Disk Utility) to store private files if you really want to stick with one user account.
    3) Im also trying to use Visor(i cant remember the name, it's a software to enable Mac to run windows without the boot camp) but i tried on my friend's Macbook, I cant use the MSN camera function... Anybody have any idea??? Or it's not compatible with the camera built-in.
    Do you mean VMWare Fusion? I believe iSight support is included in the VMWare Tools - when you're running Fusion, there's a menu option to install/update those tools.
    4) I want to use "3D Studio Max", its it compatible with Mac OS??? and will it be laggish if i uses macbook 13" white?
    I believe it's Mac only, so you should check the Windows specs (RAM requirements, graphic card VRAM, etc) to see if you can run it within a virtual Windows on your Macbook.
    Matt

  • Cast in DMM integrated to IPTV----need some tips to improve the channel streams through 4400 DMP. Now the channel streams look little pixelated. Video not sharp...

    Hi,
    Some one kindly suggest a solution for the below issue.
    In one of my customer places we are using the Cast module in DMM 5.2.2 to integrate with the IPTV.
    So the IPTV channel streams when it comes to the LCD its not sharp.
    The feeds are a bit pixelated and also the scrolling news texts from the IPTV channels looks a little weird.
    When we browse the channels using the remote from the Menu the streams coming on the small window on the LCD screen is good but when we put the video to full-screen this pixelation happens.
    The streams are decoded using 4400 DMP and using HDMI connection.
    The receiver used is D9854 and the DCM used is D9900.
    I tried by changing the DMP display parameters but this was not resolved.
    We checked the DCM parameters and verified. The DCM parameters are correct and  when we stream the channels using VLC on our laptop the stream is good.
    So I kindly request to suggest some of the rectification techniques and as such we can resolve this

    JD - I appreciate the feedback - as an update, the customer is still adamant that the DMP is to be used only for digital signs and that now he expects Cast to run on all his PCs (I'm thinking Show and Share is the solution for this).  I try to only "know what I know" and not assume certain things - but this language seems pretty clear:
    "Features of Cisco Cast help your organization to deliver video-on-demand and live broadcast TV channels over IP networks to presentation systems that you connect to DMPs."
    http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmm/user/guide/cast/welcome.html
    To me that implies that cast delivery is done explicitly through DMPs but doesn't come out and *say specifically* such - but the way I remember doing it - you just publish your Cast setup to the DMP - there is no "cast server" that you can browse to per se and manipulate the guide, etc in that manner.  I'm always open to the idea that there's something I don't know - the IT business has humbled me many times - but this seems awfully straight forward to me.
    I'm stuck with the 2200's for cast - I have to try and make them work.  I assume the procedure is to link a stream to a multicast group address, then configure that as a channel target within Cast?  Never done it for real before - need to know by tomorrow ~noon.  Is there any reason why the 2200s would simply NOT work?
    Have you had success with remote control emulation?  I don't even know if the customer has UCM, but I have been informed that Cast is controllable by a mouse or keyboard (another assertion I'm 99.999% is incorrect) so I need to quit worrying about a remote.
    If I sound terrified, it's because I am.  Thanks for all the help.  I'm not confused yet because so far I've been right about everything I think I know, but when expectations don't line up with reality, that's when things get uncomfortable.

  • Need a script to check the version of Office365 Pro Plus to push our office updates

    I need a script that could check the version of office365 pro plus e.g ( 15.0.4711.1002) and if it doesn't exists on users machine than to deploy a latest version from a network location
    I have an XML which works fine with downloading and even when deploying onto test machine but would not work on users which has an encrypted HDD and windows firewall turned on. the machine don't seem to pull the updates from Microsoft hence why wanted to
    deploy the updates through a GPO start-up script
    Currently the script would run the setup countless times without checking version and exiting the process if the version found. I hope the information given is adequate. Thanks

    Frederik, After some tweaking and testing i was able to get it working, I haven't tested it via GPO as a startup script but standalone it is doing what i was after. I cant thank you enough for helping me on this as i had lost hope after days worth of intense
    searching
    Change that i had to apply ( space in a network path
    was causing a "path not found error", Had to rename the "Office365 update" and update the path in Customconfig.xml  or any other location that was pointing to "office365 update" )
     set DeployServer=\\contoso\c2r\Office365 update\
    REM Set ConfigFile to the configuration file to be used for
    deployment (required)
    set ConfigFile=\\contoso\c2r\Office365 update\Customconfig.xml
    REM Set LogLocation to a central directory to collect script
    log files (install log files are set in XML file).
    set LogLocation=C:\AppData\Local\Temp

  • E1200 new user- need some expert tips

    Hi guys, I just bought a new e1200 model a few hours ago to replace my old WRT54G version 3.0 , My house is not that big less than 400 sq meters and one floor only. In my old router, when I go to my garden, the internet speed is very slow and thats when I thought that I needed a new upgrade , so I got the e1200, would have wanted a more expensive version like the e2000 + models and higher but this is the only one available here in our city.
    The current location of my router is thesame as before , its near my monitor here in the table , are there any tips to like increase it's signal ?
    This is from support:
    Yes, and for you to optimize its N-functionality, you need to set your Network Mode to N-only, Channel Width to 40MHz and the Security Mode to WPA2 Personal. But you need to be sure that all of your devices' cards are using N.
    I have tried changing the channel to 6 , changing the network mode to n, or security mode to wpa2 personal caused some problems with my brothers laptop, so i had ot switch back to wpa personal only. What else do I need to tweak here ?
    (Mod Note: Edited for guideline compliance.)

    Well you can try the following combination of steps:
    A] With the help of Cisco Connect Software (if at all you have installed the router with the help of this software)
    1] Open the software and go to the option which says "Router Settings"
    2] Then click on the option which says "Advanced Settings" which will take you to the router's configuration page.
    3] Then go to the Wireless tab, keep network mode as mixed,
    For Channel Settings of 2.4 GHz you can make Channel Width to 20 MHz only and Channel to 1, 6, 9, 11..
    B] If you haven't installed Cisco Connect then you can log on to the router's user interface using it's default IP address in the browser which is 192.168.1.1 and type in 'admin' as the password leaving the username field blank. This will take you to the router's web interface and then follow steps as mentioned above to make the changes.
    Secondly avoid using any other wireless devices like cordless phones, microwave oven etc nearer to the router. Update the drivers for the wireless card of the wireless computer. Then check the wireless connection status.

  • Need some advice to select an effective antivirus for my Mac Pro. I also want a cleaner utility.

    I am new in apple world, and I am worry because of recent news about virus infections in Apple computers. I need some help to find a good antivirus and also a cleaner utility (I use to work with Ccleaner in Windows, but in Apple world...).

    mapumakro wrote:
    I need some help to find a good antivirus...
    The recent malware attacking Mac's has come in the form of exploits and social trickery via websites and flaws in browser plug-ins like Flash and Java.
    I've written a guide here that will help assist in reducing your attack potential as new exploits occur all the time and it takes time before it's discovered and then create a erradication steps.
    So my guide is meant as a way to reduce your potential for attack.
    There are no viruses in the technical sense for Mac's but there is other malware and understanding what they are and how to act is more cure that trying to close the barn door after the horse has already escaped so to speak, whch is what anti-virus does.
    Harden your Mac against web attacks
    The  most you will need is likely ClamXav to clean Windows files of viruses, as there no viruses for Mac's currently.
    ...also a cleaner utility (I use to work with Ccleaner in Windows, but in Apple world...).
    There is a CCleaner for OS X, but be careful as it cleans out the Downloads folder to eliminate the driveby downloads that occur on sites people use CCleaner for
    One shouldn't be storing stuff long in the Downloads folder anyway, as it's a potential area for unknown malicious software to sit awaiting a click to see what it is.
    I'd advise creating another General user account on the Mac strickly for more riskier surfing, it can always be deleted from a Admin account and the Disk Utility > Erase Free Space to scrub the drive clean.

  • I need some online resources on the structure of Internet email system

    hi,
    I just started the mail programming and needing some resourcs on the structure Internet mail system , online tutorial , Freeeeeeeeeeeeeeeeeeeeeeeeee
    -Rana-

    Do you mean a document that tells you how SMTP should work? I think you'll want to take a look at http://www.rfc.net, where you can find RFC documents that specify all sorts of things. Search for strings like "SMTP" and "POP3" to find stuff on email system architectures.

  • Quick question: need some help with a lens effect filter

    I'm playing with the iphone 8mm video cam app and they have this familar lens effect... as seen here
    http://www.youtube.com/watch?v=Dkh7Ok8cQmw
    Would anyone know the name of this effect... it's almost like a hard pulsating vignette that you'd see in old 70's home films
    I wanted keep the video as clean as possible and use a plug-in or method to re-create that effect in post-production....

    Having done 8mm film transfers for over 20 years, I can say that I've NEVER seen the frame of the film jump like that vignette does. To me, it makes it look very fake. The rest of the effect looks OK; the image jitter, the light flicker, etc, but the vignette should be stable.
    -DH

  • I need a function to check the validation of a psp element

    Hi guys,
    i have the challenge to check psp-elements in a foreign system but i don´t found any function to do this. Has anyone an idea?
    explaining: I have a dialog with a char field to enter the psp element. In PAI i want to check the psp element via RFC function in another system.
    kr
    Thorsten

    Hi,
    Yes, you misundertood.
    The BAPI name says PROJECT, but it also validates WBS. Use the code as below:
    PARAMETERS p_wbs TYPE char24.
    DATA e_return                 TYPE bapireturn1.
    DATA i_wbs_element_table    TYPE STANDARD TABLE OF bapi_wbs_elements.
    APPEND p_wbs TO i_wbs_element_table.
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'  "add your RFC destination
      IMPORTING
        return                       = e_return
      TABLES
        i_wbs_element_table          = i_wbs_element_table.
    IF e_return IS NOT INITIAL.
       MESSAGE ID e_return-id
               TYPE e_return-type
               NUMBER e_return-number
               WITH e_return-message_v1 e_return-message_v2 e_return-message_v3 e_return-message_v4.
    ENDIF.
    Cheers,
    Custodio

  • How can i check the authorizations for a query in sap bw 3.1c

    Hi,
    While running one query i am getting warning message is  : you do not have authorization to read object ZVERSION  and few column results also not displaying.
    I would like to check is there any authorization check for this query and could you explain how we use the authorizations in our BW.
    Thanks in advance....

    if you execute su53, the authorization check failed cannot be displayed for reports. because you are executing query in BEx is it?
    for this you can trace the userid that executing query to check the authorization check failed. Go to st01 and find out the authorization check failed there.
    And you can find in RSRT too. i am not sure that.
    One more option is there to check the authorization with help of matrix that you prepared for assigning access/authorization to the users.
    Hope this would help you.

  • Need some expert help on this one

    My PPC 10.4.11 mac is running very very slow with plenty of disk space and when I try to verify permission, repair permissions etc. disk utility freezes up to the point where I have to cold shut off the computer. Issues started yesterday when a page in iweb became corrupt causing me to have to completely redesign my index page and then it started freezing up. Do I just need it do an achieve and install or is there something else I can do?

    As your very expert help already mentioned, You must repair the HD.
    If Disk Utility cannot do it then your best bets are DiskWarrior from Alsoft...
    http://www.alsoft.com/DiskWarrior/
    But you need the CD, the download won't work unless you have another Bootable HD.

Maybe you are looking for

  • Headins are not displaying in Quality Server

    Hi Friends, 1. iam develpoed one report it is displaying output in 210 sever when i moved it to quality sever, it is not displaying output headings like sales order, customer,approved..., it displaying remaining data except headings....why it happens

  • HT5548 I upgraded one of my programs and now the old and new both appear on launch pad, and I can't delete the old one.  Is there a way I can do that?

    I upgraded one of my programs and now the icons for both old and new appear on the launch pad.  I don't need or want the old version to display, as it's been imported into the new one.  I can't seem to figure out how to edit it off the launch pad.

  • Passing User Parameters through Run_Report_Object

    hi, How to pass multiple user parameters through run_report_object.example i have to pass 20 parameters, have i write 20 statements? is there any way to come in single statement.i am using Forms 6i. thks in advance,

  • Drag and Drop for Tree in a Table

    I have placed a tree in a table using the example provided in an article "Creating TreeTables in Swing" in java.sun.com. But , instead of using the FileSystem data with which the example was explained , i have passed my own data...Then i created a pa

  • Apache FOP 0.93

    Has anyone created a new jsp file for the newer version (0.93) of Apache FOP? I can see where these three lines: <%@ page import='org.xml.sax.InputSource'%> <%@ page import='org.apache.fop.apps.Driver'%> <%@ page import='org.apache.fop.apps.Options'%