Viewing 15 posts - 1 through 15 (of 23 total)
Hi,
Thanks for the response. However, what I found was weirdly the report was linked to itself?
Thanks,
July 18, 2016 at 9:17 am
No, I dont get that result that you are getting. How did you get the discount column price?
Can I please say that thank you so much for trying to help...
April 18, 2016 at 12:53 pm
Hi,
Well, I would like to know how to create a trigger?
Thanks,
April 17, 2016 at 4:06 pm
Hi,
Well thanks for the effort.
Your suggestion works too. The only reason I added the product Name was for some clarification. To make sure it was pulling the right data.
Thanks,
April 17, 2016 at 1:32 pm
Hi,
I have attached the sample data from the query ad the order table.
Thanks,
April 17, 2016 at 12:49 pm
Hi,
Is this correct?
SELECT COUNT(CustomerID), TotalQuantity, CustomerID, ProductName
FROM [Order]
GROUP BY TotalQuantity, CustomerID, ProductName;
April 17, 2016 at 12:09 pm
Hi,
Thanks for your very detailed response. Its just practise for home really.
I just want to give a discount of 10 % if the customer has ordered more than 4...
April 17, 2016 at 11:06 am
USE [Supermarket]
GO
/****** Object: Table [dbo].[Customer] Script Date: 17/04/2016 13:44:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Customer](
[CustomerID] [varchar](10) NOT NULL,
[FirstName] [nvarchar](50) NULL,
[Surname] [nvarchar](50) NULL,
[Gender] [varchar](5)...
April 17, 2016 at 6:45 am
Hi,
Do u want me to add further code for my database?
Thanks
April 17, 2016 at 6:29 am
I agree with what you are saying but however this is more of a practise trigger for me to try as I just want to get accustomed to triggers hence...
April 17, 2016 at 6:19 am
I am not sure how to write a query, that will display the customer who has more than one order in the order table. I have attached the table structures.
THanks
April 16, 2016 at 7:25 am
Hi,
I am sorry I have not provided the correct information regarding the problem.
I am trying to create a trigger, which will provide a discount of 10%, if the same customer...
April 16, 2016 at 6:58 am
Hi,
Just all the orders ordered by the same customer.
Thanks,
April 14, 2016 at 1:26 pm
Viewing 15 posts - 1 through 15 (of 23 total)