Skip to content

Feature 6 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions dbscript.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- SQL Statement 1
SELECT * FROM users WHERE user_id = 123;

-- SQL Statement 2
SELECT * FROM posts WHERE post_date > '2025-01-01';

-- SQL Statement 3
SELECT * FROM comments WHERE comment_status = 'approved';

-- SQL Statement 4
SELECT * FROM orders WHERE order_status = 'completed';
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,16 @@ public void deleteComment(Integer commentId) {
this.commentRepo.delete(com);
}

-- SQL Statement 1
SELECT * FROM users WHERE user_id = 123;
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider specifying the required column names instead of using SELECT * in this query.

Copilot uses AI. Check for mistakes.


-- SQL Statement 2
SELECT * FROM posts WHERE post_date > '2025-01-01';
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider specifying explicit column names rather than using SELECT * in this query.

Copilot uses AI. Check for mistakes.


-- SQL Statement 3
SELECT * FROM comments WHERE comment_status = 'approved';
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify the necessary column names in place of SELECT * to improve query clarity and performance.

Copilot uses AI. Check for mistakes.


-- SQL Statement 4
SELECT * FROM orders WHERE order_status = 'completed';
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace SELECT * with an explicit list of columns to adhere to best practices in SQL queries.

Copilot uses AI. Check for mistakes.


}