Advertisement
JanuszKowalski123

test2

Apr 16th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 2.11 KB | None | 0 0
  1. CREATE TABLE Renewable_Energy_Devices3 (
  2.     device_id NVARCHAR(26) PRIMARY KEY,
  3.     device_status INT CHECK (device_status >= 0 AND device_status <= 6)
  4.     device_power DECIMAL(10)
  5. );
  6.  
  7. INSERT INTO Renewable_Energy_Devices (device_id, device_status, device_power)
  8. VALUES
  9. ('12345678901234567890123456'01000),
  10. ('22345678901234567890123456'11000),
  11. ('32345678901234567890123456'21000),
  12. ('42345678901234567890123456'31000),
  13. ('52345678901234567890123456'41000),
  14. ('62345678901234567890123456'01000),
  15. ('72345678901234567890123456'11000),
  16. ('82345678901234567890123456'21000),
  17. ('92345678901234567890123456'31000),
  18. ('10234567890123456789012345'41000),
  19. ('11234567890123456789012345'01000),
  20. ('12234567890123456789013456'11000),
  21. ('13234567890123456789012456'21000),
  22. ('14234567890123456789012345'31000),
  23. ('15234567890123456789012345'41000),
  24. ('16234567890123456789012345'01000),
  25. ('17234567890123456789012356'11000),
  26. ('18234567890123456789012345'21000),
  27. ('19234567890123456789012345'31000),
  28. ('20234567890123456789012345'41000),
  29. ('21234567890123456789012345'01000),
  30. ('22234567890123456789012345'11000),
  31. ('23234567890123456789012345'21000),
  32. ('24234567890123456789012345'31000),
  33. ('25234567890123456789012345'41000),
  34. ('26234567890123456789012345'01000),
  35. ('27234567890123456789012345'11000),
  36. ('28234567890123456789012345'21000),
  37. ('29234567890123456789012345'31000),
  38. ('30234567890123456789012345'41000),
  39. ('31234567890123456789012345'01000),
  40. ('32234567890123456789012345'11000),
  41. ('33234567890123456789012345'21000),
  42. ('34234567890123456789012345'31000),
  43. ('35234567890123456789012345'41000),
  44. ('36234567890123456789012345'01000),
  45. ('37234567890123456789012345'11000),
  46. ('38234567890123456789012345'21000),
  47. ('39234567890123456789012345'31000),
  48. ('40234567890123456789012345'41000),
  49. ('41234567890123456789012345'01000),
  50. ('42234567890123456789012345'11000),
  51. ('43234567890123456789012345'21000),
  52. ('44234567890123456789012345'31000),
  53. ('45234567890123456789012345'41000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement