Need help with insertion of records
I am new to develop dynamic web pages. I followed the instructions step by step in the files using Dreamweaver 8, but for some reason any this code does not work. I have links to the database. I have the set of records and and the insert record everything correct, or at least I thought I had. Can someone help me please. I'm losing my mind. Thanks in advance.I took a break from that and when I came back to it I realized it was a problem with my database, not my code. Thanks anyway.
Tags: Dreamweaver
Similar Questions
-
need help with insert sitemap in the footer with the adobe site map muse
Hi I need help, to know how to insert a site map link in the footer of a page Web in muse Adobe.
a quick google search just shows how to create a site map, but no mention of how to get a clickable link to a sitemap on a Web footer.
any help would be appreciated.
Hello
You can try to front page of the site hyperlink to any text that would open the sitemap on the mouse action.
For example, domain.com/sitemap.xml, enter in this format in hyperlink with any text or image that you can place on the page footer area.
Thank you
Sanjit
-
Ofa: need help to insert a record into DB
Hi friends
I am totally new to the OFA and Jdev
I use Jdev version 9i 9.0.3.5
MY first task is to create a queryPG ... for that, I created a table in my PB with 3record
who has created a table in my Db with 3record,
and I created VO, AM, QueryPG, and QueryMainCO in my Jdev
And in my first task I can successfully recover data from forms my DB*.
(2) in the same .jpr my second task is to insert a record into my DB
In this task, I have been struck for more than 2 weeks... so please help me to do my 2nd task
in my queryPG I HAV to set a button called wen 'Person to create' I click that it must navigate to the CreatePG were I want to get data and wen I click on 'save' which is located in the CreatePG... the data I enter the createPG must be stored in my DB
In the createPG I HAV to set this field {personId, firstname, lastname, phoneno, e-mail, address}
First I HAV created VO not based on EO... beak for questioning we don't want EO
for inserting a record I HAV to create EO...
And one of VO based on EO is good?
Please help me to do this task
Thanks in advance
thilibanPlease follow the tutorial create exercise.
Thank you
AJ -
Hello
When inserting records into the table, I get the below error. I tried a few options, but its not solving my problem, could u pls help me on this.
Table script:
-------------
create table test
(
datadate number (12).
sla_met_time varchar2 (40),
location varchar2 (20));
My sql:
--------
Insert in the test
values (&,(&2) 1 & 3);
commit;
"exit";
Values:
-------
& 1-> 20101205
& 2-> 12/06 03.20.31AM
& 3-> US
Calling script:
--------------
sqlplus-s user/pwd@db @/home/tes/test.sql $usdate, $ustime $usloc
Error:
------
old 2: values (1, 2 & 3)
new 2: values (20101205,12/06,03.20.31AM,US)
values (20101205,12/06,03.20.31AM,US)
*
ERROR on line 2:
ORA-00917: lack of comma
Also, I'm passing "12/06 03.20.31AM" for "and 2", but in the new value his impression that the "12/06,03.20.31AM".»
I did not understand how extra comma came after "12/06.
Please help me on this. Thank you.Hello
You must pass the VARCHAR values in quotes and should not include a comma between the two.
&1 --> 20101205 &2 ---> '12/06 03.20.31AM' &3 ---> 'US'
See you soon
VT
-
Need help with windows defender. all my files folders pictures everythiing disappeared and I find myself with this black screen and it is not all good: o)
I don't know why vista windows no longer charge, or when the files and folders disappeared
How Windows Defender is on this problem?
Follow these steps to try to solve your problems of boot.
Restore point:
Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.
Try a restore of the system once, to choose a Restore Point prior to your problem...
Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:
Download the ISO on the link provided and make a record of repair time it starts.
Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.
At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.
When you have changed that, insert the Bootable disk you did in the drive and reboot.
http://www.bleepingcomputer.com/tutorials/tutorial148.html
Link above shows what the process looks like and a manual, it load the repair options.
NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.
Read all the info on the website on how to create and use:
http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/
ISO Burner:http://www.snapfiles.com/get/active-isoburner.html
It's a very good Vista startup repair disk.
You can do a system restart tool, system, etc it restore.
It is NOT a disc of resettlement.
And the 32-bit is what normally comes on a computer, unless 64-bit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data recovery:
1. slave of your hard drive in another computer and read/save your data out there.
2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.
3 Alternatively, use Knoppix Live CD to recover data:
http://www.Knopper.NET/Knoppix/index-en.html
Download/save the file Knoppix Live CD ISO above.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://isorecorder.alexfeinman.com/isorecorder.htm
Download the Vista software from the link above.
After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.
Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.
Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.
Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.
When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.
Click on the icons of hard drive to open and to understand which drive is which.
Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).
Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.
See you soon.
Mick Murphy - Microsoft partner
-
I need help with an installation failure to interpret and troubleshoot a Setup log.
Background: A few years ago, many editors of cinema used Final Cut Pro 6 (also contained in Final Cut Studio 2) for their editing projects. Shared Apple Final Cut X uses a different format that is not compatible with FCP6. Sometimes, these editors are called to work on a few historical projects that have been published in FCP6 and need this version to run now.
Starting with OS X Lion, FCP6 would install not in Lion and thereafter.
According research by Jeremy Johnston as noted on his blog, he discovered that Apple has inserted a file in the folder CoreServices in the Library folder of the system folder that causes versions the version Final Cut Pro X (and other older Apple programs in the same situation) do not settle. He suggested changes to this file that would seek to prevent interfering with the installation of FCP6 in Lion, many users of final cut PRO 6 were successful in their efforts to install in Lion and work with it.
Later in a discussion update on installing FCP6 in Mavericks, HawaiianHippie determined that the simplest way to perform the installation of FCP6 was simply copy this file and remove it from the system folder, install FCP6 and then restore the copied file:
https://discussions.Apple.com/message/26309669#26309669
I used this method with success to install FCS2 in Yosemite:
[click on images to enlarge]
However, in my attempts to install FCS2 in El Capitan, it fails in the last 5% to install the first DVD:
First of all, I need advice on how to display an extremely large Setup log in this thread (on MacRumors, it is a method to insert a 'code' in a small box that can be the object of a scrollbar if necessary to read all along). I am unable to find such a method to post here.
Then once approved, I need help to determine which component is causing the installation to fail and perhaps this element can be omitted from the installation:
If this element is not required, then maybe FCP6 can be installed successfully without it. And if that omitted element is necessary, perhaps a manual method to install it can be determined by pacifists.
It is my goal to help those who need to install and use FCP6 on their new Macs running El Capitan.
Here is the post on MacRumors with pre-installed Setup log:
-
Please need help with an Error Message on my cell phone. The message is as follows: ERROR of OPENING WET7CABLE. LOG FILE
This message came after running a disk that was provided by Belkin cable easy transfer (FU279) on my old laptop with Windows XP Home Edition you are trying to transfer my files from my old computer laptop w/Win XP on a new computer laptop w/Win 7. This record is for the Windows XP upgrade to Windows 7 and transfer the files.
I want to thank all in advance for your answers.
Nelson Santiago
Hi NELSONSANTIAGO,
1. when exactly you receive the error message?
2. is the Belkin easy transfer cable recognized by the Windows XP computer?
This file may be located on the Belkin Easy Transfer Cable installation disc.
For more information on how to use or configure the Belkin Easy Transfer cable in Windows XP, see the link below the manual on the Belkin site and check if that helps.
-
Need help with slui message with the Validation Code: 50
OT: need help with the message 'victim' slui...
Diagnostic report (1.9.0027.0):
-----------------------------------------
Validation of Windows data-->Validation code: 50
Code of Validation caching online: 0xc004c4a2
Windows product key: *-* - YMK9F - 7Q3XK-X7D3P
Windows product key hash: 9WDJkbD1PdUJ + GCdK63bG2yus5g =
Windows product ID: 00371-702-8613485-06367
Windows product ID type: 5
Windows license type: retail
The Windows OS version: 6.1.7601.2.00010100.1.0.048
ID: {60986DD4-5ADA-464C-A590-469385BD5D3A} (1)
Admin: Yes
TestCab: 0x0
LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Product name: Windows 7 Professional
Architecture: 0 x 00000009
Build lab: 7601.win7sp1_gdr.150928 - 1507
TTS error:
Validation of diagnosis:
Resolution state: n/aGiven Vista WgaER-->
ThreatID (s): n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002Windows XP Notifications data-->
Cached result: n/a, hr = 0 x 80070002
File: No.
Version: N/a, hr = 0 x 80070002
WgaTray.exe signed by: n/a, hr = 0 x 80070002
WgaLogon.dll signed by: n/a, hr = 0 x 80070002OGA Notifications data-->
Cached result: n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002
OGAExec.exe signed by: n/a, hr = 0 x 80070002
OGAAddin.dll signed by: n/a, hr = 0 x 80070002OGA data-->
Office status: 109 n/a
OGA Version: N/a, 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3Data browser-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
Download signed ActiveX controls: fast
Download unsigned ActiveX controls: disabled
Run ActiveX controls and plug-ins: allowed
Initialize and script ActiveX controls not marked as safe: disabled
Allow the Internet Explorer Webbrowser control scripts: disabled
Active scripting: allowed
Recognized ActiveX controls safe for scripting: allowedAnalysis of file data-->
Other data-->
Office details:{60986DD4-5ADA-464C-A590-469385BD5D3A} 1.9.0027.0 6.1.7601.2.00010100.1.0.048 x 64 *-*-*-*-X7D3P 5 S-1-5-21-4040712825-3780279311-4191590923 the system manufacturer ,System Product Name American Megatrends Inc. 00371-702-8613485-06367 0802 20110601000000.000000 + 000F3A53C07018400FE 0409 0409 Central Standard Time(GMT-06:00) 0 3 109 Content Spsys.log: 0 x 80070002
License data-->
The software licensing service version: 6.1.7601.17514Name: Windows 7 Professional edition
Description: operating system Windows - Windows (r) 7, retail channel
Activation ID: c1e88de3-96c4-4563-ad7d-775f65b1e670
ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00371-00212-702-861348-00-1033-7601.0000-1142014
Installation ID: 022214046070387640229264400212325972472065330163335456
Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial product key: X7D3P
License status: Notification
Reason for the notification: 0xC004F200 (non-genuine).
Remaining Windows rearm count: 4
Trust time: 12/01/2016 11:28:57Windows Activation Technologies-->
HrOffline: 0x00000000
HrOnline: 0xC004C4A2
Beyond: 0 x 0000000000000000
Event timestamp: 1:11:2016 12:55
ActiveX: Registered, Version: 7.1.7600.16395
The admin service: recorded, Version: 7.1.7600.16395
Output beyond bitmask:--> HWID data
Current HWID of Hash: QAAAAAEAAwABAAEAAQADAAAABwABAAEAln3OI0bUDFRsO24dgCKo58SW2JyUY/1mMckmPrb67HxoDsAKMMl2Vg ==Activation 1.0 data OEM-->
N/AActivation 2.0 data OEM-->
BIOS valid for OA 2.0: Yes, but no SLIC table
Windows marker version: N/A
OEMID and OEMTableID consistent: n/a
BIOS information:
ACPI Table name OEMID value OEMTableID value
APIC1425 APIC 060111
FACP 060111 FACP1425
HPET 060111 OEMHPET
MCFG 060111 OEMMCFG
LASRYVITRAGE OEMB1425 060111
ASPT 060111 PerfTune
OEMOSFR OSFR 060111
SSDT DpgPmm CpuPmHello
Thanks to everyone who responded to my question.
Turns out it would not activate the system properties page.
He did, however, turn on the tool online browser without a
hitch. Yes, problem solved.
Jon
-
Need help with SQL/PL/SQL for Dates
Hi Experts - need help with a SQL query.
I need to insert some date fields in a table called CALENDAR_PERIOD.
Current data in CALENDAR_PERIOD table with their data types:
STARTPERIOD (DATE) YEAR (NUMBER) PERIOD_LABEL (Varchar2 255)
02/11/2014 2014 2014/02/11 SUN
03/11/2014 2014 14/03/11 MON
04/11/2014 2014 11/04/14 MAR
I have to increment above values up to the year 2025. I don't know how to write SQL and increment of these values.
Ex: My next value should insert: 05/11/2015 2014 11/05/14 WED like that I need to insert data until 12 31, 2025.
Can you please help me with PL/SQL block?
Really appreciate your help!
DB version:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Thank you
SandyHello Sandy,
Maybe something like
INSERT INTO calendar_period (startperiod, year, period_label)
SELECT DATE '' 2014-11-04 + LEVEL
, TO_NUMBER (TO_CHAR (DATE '' 2014-11-04 + LEVEL, "YYYY"))
, TO_CHAR (DATE '' 2014-11-04 + LEVEL, "MM/DD/YY DY")
OF the double
CONNECT BY LEVEL<= date="" '2025-12-314="" -="" date="">=>
;
((mais je ne comprends pas pourquoi nous créons une telle table "année" et "period_label" peuvent être calculé à partir de startperiod))
Best regards
Bruno Vroman.
-
Need help with sizing and save files in batches
Hi need help with a project.
I have thousands of vector files that I need size of 350px X 350px, and then place it on a work plan x 600px-600px.
Then I need to save it to the web as a PNG with a transparent background.
Could I do a script for? or is there another way to do it in batches?
I wouldn't have to open them one by one and resize the work plan then the image and save it one by one as that would take forever.
Any help some suggestions would be greatly appreciated.
ID do as a series of actions photoshop if the end result is png,
pro image processor can help you make automatically, if you must resize batch additional... >
https://sourceforge.NET/projects/PS-scripts/files/image%20Processor%20PRO/v3_2%20betas/
I think that your work can run in a few steps, but for simplicity, I would like to start / test with a new photoshop action recording
Open a file, change the size of the image to 350 x 350
Change the canvas size,
then save under...
-
Need help with the data storage store, local array and network connections
Need help with my ESXi 4.1 installation
My hardware:
I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis. I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.
The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.
I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.
My Situation:
I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service. I've set up host via a dynamic DNS service name give me a static hostname on the internet. I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup. It is a domestic installation.
Help with the data store and network:
I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format. Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box. I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.
I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.
Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs. I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top. I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.
I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?
Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.
You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).
Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.
RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.
You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.
Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.
UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.
-
Need help in inserting first ever save
I need help to insert my first record ever from a page of the OFA.
I created a "MasterAM" AM, "MasterVO" is added it. Created a Page CreatePG which has a submit button, id = apply
Here's processRequest CreateCo
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
If (! pageContext.isFormSubmission ()) {}
am.invokeMethod ("createRecord", null);
}
}
and here is processFormRequest
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
If (pageContext.getParameter ("Apply")! = null)
{
OAViewObject vo = (OAViewObject) am.findViewObject ("MasterVO1");
am.invokeMethod ("apply");
pageContext.forwardImmediately ("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxdemo/webui/CreatePG",
NULL,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
NULL,
NULL,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
}
}
}
Here is 'createRecord' and 'apply' in MasterAMImpl
public void createRecord() {}
OAViewObject vo = (OAViewObject) getMasterVO1 ();
If (! vo.isPreparedForExecution ()) {}
vo.executeQuery ();
}
Line = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}
{} public void apply()
getTransaction () .commit ();
}
When I run the page, it opens and I try to enter some data and press on apply. It does not insert in the table.
Could someone help me.
My version of jdeveloper is 10.1.3.3.0.3Only for EO according to your, DML operations are supported by the Framework. For the no - EO according to your... We need to explicitly insert records using jdbc.
See you soon
Ganesh -
Need help with moving around images
I need help with moving images and images around the dreamweaver document window. My brother gave me his computer witch a dreamweaver MX (it is in Irag) so I can start building my own construction sites. I went to borders and bought a book on dreamweaver MX. Here's where I'm having a problem with: when ever I bring an image in the document window, I can't move the image around the document window. The book says "place the insertion point where you want the image to appear" but there is no insertion point. There is just a straight line as if I am trying to type something. It's almost as if I'm in microsoft word. If I take the mouse on the image, and then left click and try to drag the image to the location I want, it does not move. Can someone please help me with this problem. Thanks JicalThank you for the answer to my question. This was really helpful.
Jical -
Need help with PL/SQL query complex
I need help with a query that need access to data from 3 tables. That's what I did
I created 3 tables
CREATE TABLE post_table
(
post_id varchar (20),
datepost DATE,
KEY (post_id) elementary SCHOOL
) ;
CREATE TABLE topic
(
TOPIC_ID varchar (20),
name varchar (20),
PRIMARY KEY (topic_id)
);
CREATE TABLE blogpost_table
(
TOPIC_ID varchar (20),
post_id varchar (20),
PRIMARY KEY (topic_id, post_id);
FOREIGN KEY (topic_id) REFERENCES topic (topic_id) ON DELETE CASCADE,
FOREIGN KEY (post_id) REFERENCES post_table (post_id) ON DELETE CASCADE
);
Now, I inserted a few values in these tables as
INSERT INTO post_table VALUES ('p1', to_date ('2009-09-14 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p2', to_date ('2009-07-18 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p3', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p4', to_date ('2009-03-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p5', to_date ('2009-07-13 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p6', to_date ('2009-06-12 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p7', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO VALUES subject ("t1", "baseball");
INSERT INTO category VALUES ('t2', 'football');
INSERT INTO blogpost_table VALUES ("t1", "p1");
INSERT INTO blogpost_table VALUES ('t1', 'p3');
INSERT INTO blogpost_table VALUES ("t1", "p4");
INSERT INTO blogpost_table VALUES ('t1', 'p5');
INSERT INTO blogpost_table VALUES ('t2', 'p2');
INSERT INTO blogpost_table VALUES ('t2', 'p6');
INSERT INTO blogpost_table VALUES ("t2", "p7");
I'm launching SQL queries on the table in this topic.
I want to write a SQL query that returns me the name of a topic (s) and the number of blog_post (s) associated with the topic in descending order of the number of blog posts created in July.
Can someone please help me to write this query?
Thank you
Published by: user11994430 on October 9, 2009 07:24Thanks for the test of the configuration!
SQL>SELECT t.NAME, COUNT(*) 2 FROM topic t, blogpost_table b, post_table p 3 WHERE b.topic_id = t.topic_id 4 AND p.post_id = b.post_id 5 AND p.datepost >= DATE '2009-07-01' 6 AND p.datepost < DATE '2009-08-01' 7 GROUP BY t.NAME 8 ORDER BY COUNT(*) desc; NAME COUNT(*) -------------------- ---------- baseball 2 soccer 2
HTH, Urs
-
Need help with query SQL Inline views + Group
Hello gurus,
I would really appreciate your time and effort on this application. I have the following data set.
Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 20.00 *---19
1234567 11223 - 05/07/2008 - 44345563 -a--10,00---19 ofbad quality adjustment
7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19
Please ignore '-' added for clarity
I'm writing a paid_amount based on Reference_No, Check_Number, Payment_Date, Invoice_Number, aggregate query Invoice_Type, Vendor_Number and display description with Invoice_type 'I' when there are multiple records with the same Reference_No, Check_Number, Payment_Date, Invoice_Type, Invoice_Number, Vendor_Number. When there are no more records I want to display the respective Description.
The query should return the following data set
Reference_No---Check_Number---Check_Date---description---Invoice_Number---Invoice_Type---Paid_Amount---Vendor_Number
1234567 11223 - 05/07/2008 -paid for cleaning- 44345563-I-* 10.00 *---19
7654321 11223 - 05/07/2008 - setting the last billing cycle - 23543556 - A - 50.00 - 19
4653456 11223 - 05/07/2008 - paid for cleaning - 35654765 - I - 30, 00-19
Here's my query. I'm a little lost.
Select b., A.sequence_id, A.check_date, A.check_number, A.invoice_number, A.amount, A.vendor_number
de)
Select sequence_id, check_number, check_date, invoice_number, sum (paid_amount) sum, vendor_number
of the INVOICE
Sequence_id group check_date, check_number, invoice_number, vendor_number
) A, B OF INVOICE
where A.sequence_id = B.sequence_id
Thank you
NickIt seems that this is a duplicate thread - correct me if I am wrong in this case->
Need help with query SQL Inline views + Group
Kind regards.
LOULOU.
Maybe you are looking for
-
Qosmio Player - where is it?
Reading all the posts tv tuner probs talk a lot is said about Qosmioplayer. Where is he? I have a G20 and have tried to connect the tv via my tv in media Center. The software was loaded at the factory and I have a recovery disc qosmioplayer, just do
-
Why no event to CHANGE the VALUE?
LV2013, Win7 The attached VI does not work the way I expected. I wonder what can be done. My real program (this is not it) has a window with a menu. You modify alarm settings in this window. It uses a menu with NEW, OPEN, REVERT, SAVE and SAVE as.
-
The administrator account settings
I got my computer to someone else. I changed my coordinates and the name of the computer administrator account. The former owners user account no longer exists, but whenever I do anything it still says c:\users\the another name of people. And very of
-
Cannot read photos from Nikon S200
Hello My Windows Vista Help. I was able to view and download photos from my digital camera (Nikon S200) previously. But now when I connect the device via the USB ports (tried with each of the 4 USB ports), I am unable to run any type of event. Manife
-
USB copy to reinstall the program
I did a factory reset on my laptop. Before I did it, I back up all data and program on a USB key. But I find copy back the program from USB after resetting the program (Microsoft Works) then run. I have reinstall using the disc to install., but the D