Help! Trying to amount of money with the duplicate lines
I have a database that have the code bars the columns following, quantity, etc.. The barcode colum has duplicates of bar code and the corresponding quantity is different. I worked hours trying to solve how to summarize each different bar codes and replace the table with 1 bar code each corresponding total quantity. For example, instead of:
97138644756 | 3 |
97138644756 | 2 |
97138644756 | 1 |
97138660565 | 5 |
97138660565 | 4 |
97138661777 | 1 |
97138662224 | 1 |
97138670403 | 1 |
97138679239 | 1 |
97138714978 | 1 |
97138716262 | 1 |
97138739667 | 6 |
97138739667 | 7 |
97138739667 | 8 |
I would like that it follows:
97138644756 | 6 |
97138660565 | 9 |
97138661777 | 1 |
97138662224 | 1 |
97138670403 | 1 |
97138679239 | 1 |
97138714978 | 1 |
97138716262 | 1 |
97138739667 | 21 |
I used the following code, which selects only duplicates.
< cfquery name = "CountBarcodesCart1" datasource = "inventory" >
SELECT *.
OF cart1
WHERE barcode (IN)
SELECT bar code
OF cart1
GROUP BY barcode
SEEN (COUNTING (barcode) > 1))
< / cfquery >
Thanks for anyone who can help with my business.
I know there are much better to do this, but I'll share the following code and hope it helps someone else. What I did change table CART1 to a TEMP table, get the added dupliates and then copy the corrected (with no duplicates) to a new data table. Then I delete the TEMP table.
SELECT the barcode, Sum (Quantity) as the quantitysum
TEMP
GROUP BY barcode
INSERT INTO Cart1 (bar code, quantity)
VALUES (#CountBarcodesTemp.barcode #, #CountBarcodesTemp.quantitysum #)
#barcode #-#QuantitySum #.
DELETE *.
TEMP
Tags: ColdFusion
Similar Questions
-
I have iphone 4s, icloud locked trying to get in touch with the owner to give it back or unlock it he won't talk, it's gsx is useful in this case? owner is not interested in the phone! and he has been blocked me on whatsapp about 6 times when I tried to get in touch with 6 different number what can I do I login apple, name and telephone number of the owners, in the name of the country
anyone here to help me? am ready to give her phone or money for if it unlock the phone
* someone sell me the phone on class based internet site
Thank you
It's between you and him, Apple won't help you. So if he wants too that the phone doesn't help you, I advise you to stop bothering him, it's a little cheesy, don't you think?
-
I'm trying to reinstall windows vista with the cd that hp sent me.
I am trying to reinstall windows vista with the cd that hp sent me and he used to in stall, I had to have a new hard drive put in and I'm trying to put vista in and I can't help please
If you have problems with the HP recovery disk, you will need to contact HP.
This is HP Recovery Media, not Microsoft.
HP Contact Info:
http://welcome.HP.com/country/us/en/contact_us.html
See you soon.
Mick Murphy - Microsoft partner
-
Deployment of final application with the command line Question
OK so I have my finished application.
on a folder in my office called "CODBOUG".
So I tried different methods to run the application and complete the test on the Simulator with the command line. But it's just too much. So I need your help community!
I tried:
BlackBerry-deploy-installApp-package CallofDutyBlackOpsUltimateG
uide.bar - device 192.168.18.128
I'm a little lost with the help of the command line, if someone could guide me on the right lane.
I'm on windows, btw.
Thank you.
When you run a command, Windows will search in a series of directories for this program to run. The list of directories is stored in what is called an environment variable. You must add the path to the bin of the sdk at this variable directory (e.g. C:\Program Files (x 86) \Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin).
You can access the path variable by right-clicking on my computer > properties. Select the Advanced tab and click on approx. Variables.
Under System Variables, search PATH and edit it. Add the path to the sdk bin directory (make sure that there is a semicolon, that separates the directories).
Open a command line window in the directory where your .bar file. When you run the command, Windows will look for blackberry - deploy and can be found in the directory that you have added to your PATH variable so to run it.
-
How to remove a shortcut with the command line?
How to remove a shortcut with the command line?
How to make a backup of the local users and groups with command line?
You delete a shortcut, just as you would remove any other file. A shortcut will end with the extension ".lnk". So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file. (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:
del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".
What kind of a backup 'users and groups' you want to do? If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line. If you are trying to backup all users and their data as well, then you are better off with a backup program.
HTH,
JW -
The hand with the red line icon and cursor freezes HP Compaq Presario CQ57-402SV
I recently purchased (2 days) the laptop above in Greece. Sometimes no reason apparent, while using the touchpad, I get an error sound and a big hand icon with a red line through it and the cursor hangs. It cannot be erased by sleep, then reopened. Any help would be welcome. Thank you.
most counsumer laptop touchpad leftside corner has for the touchpad toggle switch. If you tap on this area, it will be enable and disable the touchpad. Once disabled, you get the hand with the red line.
Please avoid pressing on the area on the side right touchpad upper-left that turned on like a light switch.
-
I opened my photos of my SDCard with File Explorer, select them all, then I select move to fill after that I saw the bar of loading with the green line. After that all my photos from my computer disappered and were removed from my SD card. Help, please
I looked everywere in my computer, but they are not found
I bet that you have selected the folder Adobe Bridge CC or CS6, and it would be in there under Program Files/Adobe/or Program Files (x 86) / Adobe /.
Move to... in the file Explorer apply only to records not the bridge program.
You open Bridge and Photo Downloader allows you to move pictures from your SD card in the deck (also called import)
Gene
-
What happens to me all the time: I'll be tracked something in AI (CS4, Mac) using the pen tool and I find I left the "handles" in a place that ends up being incompatible with the next line segment I want to do. Generally what happens, is that I made a curve and then I want to do a straight segment, but I can't do it without putting in a strong shot. Like this:
How do I either stop doing this in the first place or correct when it arrives?
Mary,
If I (put) understand it, you can just press Alt/Option (so that you are always mousing down) and drag the handle back in the anchor, then let go and click or ClickDrag the next Anchor Point.
View > guides are your friends saying anchor when you are there.
-
For loops with the cursor line and indexing
Hi all
I have a question about the loops with the cursor, line and indexing.
How can I scan via a cursor with an iterator?
I would use an iterator as
Whole LoopIndex;
Whole LoopIndex2;
for LoopIndex at the beginning of the cursor at the end of the cursor
loop
line =: cursor [LoopIndex];
for LoopIndex2 of LoopIndex at the end of the cursor
etc...
end loop;
I need to use an iterator because I need to use a nested for loop.
OR
How can I solve the following problem?
Class name % ofClass average test Score
1 Niobe 7 8 8.4
1 alena 4 7 7.5
1 9 7 8.9 Estia
1 Lilly 10 8 9.8
1 Sandra 6 8 8.3
1 Melanie 8 8 8.1
Nadia 2 8 3 4.4
Sayuki 2 9 8 8.4
Diasy 2 7 8 8.0
Flower 2 7 8 6.5
Diana 2 6 8 7.3
3 Flora 7 8 5.8
Sukiya 3 4 8 8.4
Samantha 3 10 8 7.7
Roxanne 3 7 8 6.9
Eline 3 8 8 7.4
I need to
-By class, I need to recalculate each average people
-By class, I need to calculate the % of class score (sum averages / people in the class)
So it can be done in a nested for loop?
Or do I just step by step?Well, based on this information it would be something like...
SQL> ed Wrote file afiedt.buf 1 with t as (select 1 as Class, 'Niobe' as Nm, 7 as Score, 8 as Tests, 8.4 as Average from dual union all 2 select 1, 'Alena', 4, 7, 7.5 from dual union all 3 select 1, 'Estia', 9, 7, 8.9 from dual union all 4 select 1, 'Lilly', 10, 8, 9.8 from dual union all 5 select 1, 'Sandra', 6, 8, 8.3 from dual union all 6 select 1, 'Melanie', 8, 8, 8.1 from dual union all 7 select 2, 'Nadia', 3, 8, 4.4 from dual union all 8 select 2, 'Sayuki', 9, 8, 8.4 from dual union all 9 select 2, 'Diasy', 7, 8, 8.0 from dual union all 10 select 2, 'Blossom', 7, 8, 6.5 from dual union all 11 select 2, 'Diana', 6, 8, 7.3 from dual union all 12 select 3, 'Flora', 7, 8, 5.8 from dual union all 13 select 3, 'Sukiya', 4, 8, 8.4 from dual union all 14 select 3, 'Samantha', 10, 8, 7.7 from dual union all 15 select 3, 'Roxanne', 7, 8, 6.9 from dual union all 16 select 3, 'Eline', 8, 8, 7.4 from dual) 17 -- 18 -- END OF TEST DATA 19 -- 20 select class, nm as "NAME", score, tests, average 21 ,round(((average*tests)+score)/(tests+1),1) as avg_person 22 ,round((average / sum(average) over (partition by class))*100,1) as class_average 23 from t 24* order by class, nm SQL> / CLASS NAME SCORE TESTS AVERAGE AVG_PERSON CLASS_AVERAGE ---------- -------- ---------- ---------- ---------- ---------- ------------- 1 Alena 4 7 7.5 7.1 14.7 1 Estia 9 7 8.9 8.9 17.5 1 Lilly 10 8 9.8 9.8 19.2 1 Melanie 8 8 8.1 8.1 15.9 1 Niobe 7 8 8.4 8.2 16.5 1 Sandra 6 8 8.3 8 16.3 2 Blossom 7 8 6.5 6.6 18.8 2 Diana 6 8 7.3 7.2 21.1 2 Diasy 7 8 8 7.9 23.1 2 Nadia 3 8 4.4 4.2 12.7 2 Sayuki 9 8 8.4 8.5 24.3 3 Eline 8 8 7.4 7.5 20.4 3 Flora 7 8 5.8 5.9 16 3 Roxanne 7 8 6.9 6.9 19.1 3 Samantha 10 8 7.7 8 21.3 3 Sukiya 4 8 8.4 7.9 23.2 16 rows selected.
-
Im trying to use my dazzle with the new windows 7
Im trying to use my dazzle recorder dvd with the new windows 7, but its does not work I did all the things he told me to do, but im not getting video or sound now
Answer:
Hi GRaFiix,
Welcome to Microsoft Windows 7 Forums
Do you have an error message when you play the dazzle DVD recorder?
You are able to get the video and sound with the media player, media center and other third party software?
Check if the recorder Dazzle is compatible with windows 7, given in the link below:
http://www.Microsoft.com/Windows/compatibility/en-us/default.aspx
You can download the latest drivers video and audio of PC manufacturers.
Hope this information is helpful
Suresh G
Microsoft Answers Support EngineerVisit our Microsoft answers feedback Forum and let us know what you think
-
Earn money with the BIOS password?
Hello
I have an Inspiron 640 m (same as e1405), and I put a BIOS password like two years ago, when I bought the machine. Now, I wanted to change something, and I don't remember the password. Now it is true that I myself am a morron to set a password and then forget, but to actually be forced to pay Dell a $ 36 just to have access to my own machine seems kind of evil.
So far I did not have many problems with Dell. There were a few problems when he left, but I didn't expect much for the price, and Dell has voluntarily replaced my broken keyboard while the machine was still under warranty.
But charge me money to give Master of passwords really scratch my head. What is the point of this policy? I'm going to buy a Dell again when I know that even for such a small, Dell will charge me if I'm not under warranty anymore? I do not. There is nothing broken on my lap top, there is nothing to replace. No, it is not yet a problem of software or any other problem that Dell would have to solve. I want just a check on my own camera, and I don't have it because of this policy.
In any case, I find it very disturbing Dell charge me for this. Oh and if she * really * has such a load of work that managers of the floor had to decide to start charging die like me to give Master of passwords, so why not just implement a webinterface for registered clients retrieve the password? Again, I have the original receipt, order numbers etc. for someone like me could just connect to their user account, enter the title and get the password. Not much. But no, I have to call the expensive telemarketing and pay $ 36 to get the password. Oh and the people who buy the lap tops off eBay are extinct, even worse than me if they cannot provide proof of purchase. This whole business of BIOS locking does not prevent flight anyway. If a thief finds a machine, that it can't unlock, he can always sell it on eBay or trash.
I am disappointed.
Kind regards
Carl.
dgkpcon"Yes, you paid for the protection and guarantee once, but he missed."When I said that I already paid, I said that I paid for the complete system, including the hardware and software level, including the password that belongs to me and it should be bundled with the system or be freely accessible, for example through the online account. Lost password should not be treated as a case of warranty as noted previously, because there is nothing wrong with the machine, or hardware or software. I am missing just a password which is part of the software on my machine, I paid when I bought it.
dgkpconRemember, when a warranty runs out, that's all. And the software is attatched to such a system has expired.I agree that you can always see all kinds of service strictly as a compliance to a contract. A contract, such that given warranty on one or three years or any other period of time. Then, when the time runs out, the seller of the product, in this case Dell, has no obligation whatsoever to give free support. I can still say however (again, leaving only the made the master password belongs to me, and that I should get it for free because I paid for my machine with the protection of password part of it) that's not very friendly Dell charges $ 36 for a simple question like that. It's all simply do not trust to Dell as a reliable and friendly company, while doing exactly the opposite. At least, it seems greedy money charge for a question like this. Of course, you can buy anything with money, but Dell is clearly lacking chances with the questions exactly like this, where sums of money are charged, which are very little to a giant like Dell, still a lot for a single client. If Dell could give the password for me for free, I would tell my friends, their recommendation to buy Dell hardware and experience with Dell is especially a nice. As it was, however, charged $ 36 for a false problem, I feel like Dell is trying to squeeze every last penny out of their customers.
I must admit, the market is not the same as 10 years, where Dell was famous for the good support and build quality of material. Everything must be cheap, competition is strong, and Yes, every penny counts. But this is no reason for customers offend with this kind of service charges when there is in fact no need for service.
I need not any service, I want to just my master password.
These certainly of 36 dollars are a greater loss in brand image, to a profit in money.
-
AMOUNT of Oracle with the date range
Hello community,
I'm having a problem with the addition of a field with a date range. It comes to my table
JVREF VARCHAR2 10 - - - - - - SOURCE VARCHAR2 2 - - - - - - PERIOD VARCHAR2 6 - - - - - - JVDATE NUMBER - 38 0 - Nullable - - GLCODE VARCHAR2 24 - - - - - - DESCR VARCHAR2 40 - - - Nullable - - AMOUNT_0 FLOAT 48 48 - - Nullable - - AMOUNT_1 FLOAT 48 48 - - Nullable - - JVTYPE VARCHAR2 4 and I'm glad the the following statement works as expected
SELECT AMOUNT_1 FROM 'TABLE' where
TO_DATE ("PERIOD, ' YYYYMM") > = to_date ("'201501 ',' YYYYMM")
and
TO_DATE (PERIOD, 'YYYYMM') < = to_date ("'201502 ',' YYYYMM");
E.g.
AMOUNT_1
56192.48
59863.57
48570.1
72407.12
21626.96
35532.96
75860.67
25623.62
54799.83
16872.3
The next thing I want to do is the sum of these amounts... so I changed my statement to become
SELECT SUM (AMOUNT_1) 'TABLE' where
TO_DATE ("PERIOD, ' YYYYMM") > = to_date ("'201501 ',' YYYYMM")
and
TO_DATE (PERIOD, 'YYYYMM') < = to_date ("'201502 ',' YYYYMM");
and now I'm getting
ORA-01841: (full) year must be between-4713 and 9999 and not 0
I also tried
SELECT THE PERIOD (AMOUNT_1) SUM OF "BRE". "' OPW_NMLTRX ' where
TO_DATE ("PERIOD, ' YYYYMM") > = to_date ("'201501 ',' YYYYMM")
and
TO_DATE (PERIOD, 'YYYYMM') < = to_date ("'201502 ',' YYYYMM")
Group by PERIOD
with the same results... I can't figure out what I should do next?
Thank you.
Hello
Solomon Yakobson says:
Question:
SELECT *.
From your_table
WHERE the TO_NUMBER (SUBSTR (PERIOD, 1, 4)) NO BETWEEN-4713 and 9999
OR TO_NUMBER (SUBSTR (PERIOD, 1, 4)) = 0
/
To find the offending rows.
SY.
This can cause other errors, according to what is in this column. A better way would be something like:
Primary_key SELECT, period - add more columns you want
'TABLE' - avoid names which need quotation marks
(Period WHERE the TRANSLATION)
'012345678'
'999999999'
) <> = "999999"
OR SUBSTR (period, 1, 4), not BETWEEN "1900" AND "2099"
OR SUBSTR (period 5) NOT BETWEEN '01' to '12'
;
Now there may be errors of conversion, because there is no conversion.
-
After being on the phone with Adobe for more than an hour, I downloaded the creative cloud, with lightroom, photoshop and illustrator. It took about an hour to install the applications. Now my creative cloud does nothing when I click on it. It's just a blank white screen. I need to work for the school and have spent hours trying to figure it out. Help!
Try with the steps mentioned below:
N ° 1)
Launch the activity monitor and force them to leave Adobe all processes as creative cloud. CoreSync, AAMUpdater... etc.
Step 2)
(1) right click on the Finder icon and select 'Go - To Folder' option.
(2) you will get a text box, type in the following command and then press the 'return '. ("Not to be missed ~ symbol")~/Library
It will open the folder of the user's library.
(3) then navigate to Application Support > Adobe > OOBE. Open the OOBE folder and Opm.db bin file.
Once you had trashed Opm.db file, restart the Adobe Creative Cloud app and check.
Always the same?
Try steps mentioned in the link below:
-
In my post in November, I explained that I had tested the power supply with a multimeter and read the correct voltage. Two people to the Board of Directors always seem to think it was the power supply, so I replaced it with a new one (Corsair CX 430 R) and it still won't turn. I had suspected the power switch because when I bypass the MOBO 20 pin plug 'on', the power led lights up, fans have come on short and I heard the rotation of the disk. I also tried to troubleshoot the switch by jumpering the pins on the motherboard, but still no luck. Someone there ideas more before I replace the card MOTHER and CPU? Thanks in advance.
Roamstead
Cloud_strider,
Thanks for the reply. After swapping the PSU, CPU, taking the RAM pins on jumping on the MOBO for power/LED/reset button, each separately and with the same result, I eventually swapped the MOBO to an ASRock A785GM - THE and who did! He finally put under tension. Thanks again.
roamstead
-
After changing the motherboard in my PC the device software windows 7 cann't be activated. I tried many times to speak with customer service through automated phone system, but failed. Now what should I do.
The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:
-OEM versions don't offer any free direct support from Microsoft technical support Microsoft
-OEM Licenses are tied to the computer first you install and activate it on
-OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard
-OEM versions does not move directly from an older Windows operating system
What is OEM software? :
http://support.Microsoft.com/GP/oemsupport_1/en-GB
Licensing FAQ:
http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx
--------------------
Windows 7 - version comparisons:
http://Windows.Microsoft.com/en-us/Windows7/products/compare-editions
MS Windows 7 store price:
http://store.Microsoft.com/Microsoft/Windows-Windows-7/category/102
--------------------------
Maybe you are looking for
-
Tecra A2 - audio lost and cannot find the device
The other day, lost all the sounds on the laptop. Nothing else did it and no new software has been loaded for possibly in conflict or cause a problem. Have you tried to uninstall and reinstall the driver and add hardware (Media Audio Controller) even
-
Nice day for many years, pay on Fust in Oerlikon Zurich. HP Pavilion p6 2137ezm with Win7 32 bit German profesional. Without DVD, everything has been installed. Where can download 64-bit Version of their share. Cuisne evrybody help me for the link, a
-
HP6520 photo tray not installed
I tried to print from my bin picture for hours now. All the software I try to use the photo tray shows as not installed. Here's a screen trying to print from Photoshop CS6. I am running Windows 8.1 64bits. I checked all the settings and selected
-
This photo shows the ability to reset the time spent with a button. I tried to use a loop for several buttons, but the time does not work. Is the problem with the Subvi sync? Would it not be better to subtract get time in seconds Subvi?
-
Hello I have a start much vi using "Start ASynchrounous appeal" and build a reference vi. At the end of my main vi, I would wait each end of vi before release of common resources. As a first step, I try to use "Wait on the asynchronous call" on each