Showing posts with label total. Show all posts
Showing posts with label total. Show all posts

Friday, March 30, 2012

How to from 1*apple,1*orange,1*apple to 2*apple,1*orange

Lets say there is a data table called ShoppingBasket. It has fields like "product", "price", "quantity" and "total" and so on. It is possible to have duplicates, but I think it is better to run a query and remove them. And update quantities. In the end, I plan to calculate total price.

For total price there seems to be a field or property "Formula" in column properties.

As this is really two questions, I take any help.

Leif


We need to see how your data looks like and also how you want it updated..

|||

"We need to see how your data looks like and also how you want it updated.." Here it comes.

I have a table called t_shopping_basket. There the user inserts items from products table "t_Tuote". I use this query:

"INSERT dbo.t_shopping_basket (Product_code, Name,Model,Quantity,Price,Alv) SELECT Tuotekoodi,Name,Model,Toimittajanimi,@.Quantity,Price,Alv FROM dbo.t_Tuote WHERE Product_code=@.Product_code", conn) ".

I have included also a gridView of "shopping basket" Its query is like:

"UPDATE [t_shopping_basket] SET [Product_code] = @.Product_code,[Quantity] = @.Quantity,[Name] = @.Name WHERE [Product_code] = @.Product_code"

Nothing prevents users pressing buy several times, so same item can be there in many places. If I leave them there, it has its good positive and negative sides. I probably should put an extra field like "item index" or so into the table then. Or I could leave quantity field out. 3 pieces means 3 rows of something.

Best way to my mind is to delete or prevent duplicates. But then, I have to find those duplicates first, and when I delete a record, I must increase item quantity. This feels like a complicated thing to do, especially with query.

How have others done this? What could my query look like?

Regards

Leif

How to Format the Number for Total

Hai Friends,

I am using Crystal Report 9.2.
In my project, i am in need of finding the Subtotal, totals.

While doing so, its assigning the value as 2,234,456.00

i am in need of that display to be 22,34,456.00.

i tried for Formula Field & also Selection Formula's Group in Crystal Report.
In the Format Field, i am not able to customize for thousand.

Can any one help me to solve my problem for finding the total.Interesting question. I don't think you can do this easily. You might have to create a new formula field and use string manipulation.|||Hai Babu - Moderator,

Are u there? Why no reply from u?

Regards
Geetha|||hai Moderator,

What happened to u?
why u r not responding.
in crystal report as well as in access, we have this type of display for the totals.

rectify this.

Regards
geetha|||Convert the money to text and seperate the digits according to the format you want and combine them by ","

Monday, March 19, 2012

How to find Sum on the summary field

Hi,

I need to find the grand total of a feild in the report ,which is already a summary field. How do i find the grand total of that field. any help could be appreaciable.

For example

No of Days
3.456
4.678
2.874
1.568...

I need to find the Sum(No of days). But no of days is already a summary field

ThanksTry using the Insert menu and choose 'Grand Total'. It should automatically place it in the footer of the report.

Hope this helps!
Jules|||I tried it to do like that but as it is alreadya calculated and summary filed it is showing that field in insert summary options. Anyway thanks for your advice.
Thanks
Sudharsan|||I guess I am not totally understanding here...

What is the summary not showing you?

Jules|||Okay, I went back and re-read what you wrote.

You have a summary field that pulls information in and gives you a summary of each individual day, by the day, right?

If so, you are only summarizing here, not doing a grand total (which you know). Did you go to the Insert menu at the top of the screen and go down to 'Grand Total'? It is right above 'Summary' there.

Jules|||Hi
Here i am attching the report for your reference. I want the grand total on the Average # of buss days field. Could you Please suggest me what to do.|||It won't let me open the report - it says that it is an invalid version. What version do you have?

I have a different version on my computer at home (I'm at work) so I can try it there...

Jules|||That report was build on Crystal 11

How to find SQL SERVER ?

How to find total number of SQL Server which is running in local
network m/cs, through C# or from one of SQL Server? - Thanks in adv.Hi

ISQL -L or SQL DMO.

http://groups.google.com.au/group/m...b87e4f264795ce0

Regards
----------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@.epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"murali.trichy" <murali.trichy@.gmail.com> wrote in message
news:1124524045.477179.313090@.o13g2000cwo.googlegr oups.com...
> How to find total number of SQL Server which is running in local
> network m/cs, through C# or from one of SQL Server? - Thanks in adv.|||Hi

If you wanted a tool that does this then SQLRecon should fit!
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=26

John

"murali.trichy" <murali.trichy@.gmail.com> wrote in message
news:1124524045.477179.313090@.o13g2000cwo.googlegr oups.com...
> How to find total number of SQL Server which is running in local
> network m/cs, through C# or from one of SQL Server? - Thanks in adv.

Monday, March 12, 2012

How to find out the total number of commited transactions on SQL2k?

Dear all,

Previously I posted this issue on SSIS newsgroups and I did not obtain any response so that I'll do here.

Using this system function (::fn_log(null,null)) you can find out how many transactions have been confirmed in your .LDF. Although by means of another system function you can see further information, such as statitical.

Any help would be very appreciated.

Thanks in advance and regards,

sp_monitor among them

Friday, February 24, 2012

How to find determine estimated time for restoring a terabyte database

Hi,

Is there any way i can determine the total time a database of size 1 tera byte will take while restoring it?

Or if anyone has hands on restoring a terabyte database and can share the time taken it would be of great help.

Thanks,

This depends on your disk subsystem.

What is the maximum throughput per second of your disk subsystem?

WesleyB

Visit my SQL Server weblog @. http://dis4ea.blogspot.com

|||SEe my http://sqlserver-qa.net/blogs/perftune/archive/2007/06/12/get-backup-and-restore-performance-stats-with-a-dmv.aspx fyi.