Saturday, 23 December 2023
Install Lets Encrypt SSL in Windows Server Plesk
Monday, 11 December 2023
Insert record in a table with only an IDENTITY column? SQL Server
I was making an image gallery with images only. So I have created a table with a single column named ID with identity. I want to create a row with the auto number and create an image with a created auto. number.
The problem is How to insert a table with only an IDENTITY column.
This problem is solved by the query given below.
INSERT dbo.TABLE DEFAULT VALUES;
Next Example
Wednesday, 29 November 2023
Restaurant Table Booking Project Synopsis
Restaurant Table Booking Management Project Synopsis
Introduction of Project
- Availability: The software enables users to view the availability of rooms in real-time. This makes it easy for users to find and book rooms quickly.
- Reservations: The software allows users to make reservations easily. It keeps track of all reservations and ensures that there are no double bookings.
- Payment processing: The software enables users to make payments securely online. This ensures that payments are processed quickly and accurately.
- Management: The software helps managers to manage the Restaurant Table Booking effectively. It provides them with real-time information on room availability, reservations, and payments.
- Reporting: The software generates reports that provide insights into room occupancy, revenue, and other key performance indicators. This helps managers make informed decisions.
Key Features
- Dynamic website
- Staff Attendance Entry
- Auto Entry and Auto Reporting
- Staff Working Performance
- Fraud Detection
- SMS/Email notification
- Work Chart Printing
- Customer chat service
- Reporting
- Separate login panel for both user and web admin
- Detail Reporting of daily ,monthly basis
- PAyout Reporting
- Backup and restore management.
Wednesday, 8 November 2023
Success Pending order chart
Welcome, This post will help you to make a chart for Success Pending order count datewise. This Sales chart shows the business summary of a month date-wise in just a glimpse. It takes a few seconds the get an idea of the whole month's business, It is a better choice to written business summary.
Developer Information
Database Table
Let's get Start
Google Chart
data.addRows([
[1, 0, 0],
[2, 2, 0],
[3, 0, 3],
[4, 18, 10]
]);
Requirement
with str1 as
(
select day(orderdate) as day,case when status=1 then sum(status) end as success,case when status=0 then count(status) end as pending from [Order]
group by (OrderDate),status having month(OrderDate)=month(getdate())
) select * from str1
I have saved query in CTE to output in str1 variable, which will be used output for next query.
Now we have the list of success and pending order list datewise. We have to combine this in a single row for datewise.
2. Now it is time to sum the pending and success order datewise by combining the above query output to other CTE variable str2
(
select day(orderdate) as day,case when status=1 then sum(status) end as success,case when status=0 then count(status) end as pending from [Order]
group by (OrderDate),status
having month(OrderDate)=month(getdate())
),
str2 as
(
select day,sum(success) as success,count(pending) as pending from str1 group by day,success,pending
) select * from str2
with str1 as
(
select day(orderdate) as day,case when status=1 then sum(status) end as success,case when status=0 then count(status) end as pending from [Order]
group by (OrderDate),status
having month(OrderDate)=month(getdate())
),
str2 as
(
select day,sum(success) as success,count(pending) as pending from str1 group by day,success,pending
)
select day,max(success) s,max(pending) as p from (
select day,isnull(success,'') as success,isnull(pending,'') as pending from str2 group by day,success,pending) tbl
group by day