SQL Experiment
SQL Experiment
1. Create Tables
);
);
Insert values
Display data
3. Drop Table
4. Enforce Constraints
Primary Key
Foreign Key
Check
Not Null
FROM Employee
Explanation
#include <iostream>
#include <vector>
#include <queue>
visited[startNode] = true;
q.push(startNode);
while (!q.empty()) {
q.pop();
if (!visited[neighbor]) {
visited[neighbor] = true;
q.push(neighbor);
int main() {
vector<vector<int>> adjList(nodes);
// Example graph edges
adjList[2] = {0};
adjList[3] = {1};
adjList[4] = {1};
BFS(0, adjList);
return 0;