text
stringlengths
6
9.38M
CREATE TABLE IF NOT EXISTS entrainements ( id INTEGER PRIMARY KEY AUTOINCREMENT, label TEXT NOT NULL, seance TEXT NOT NULL, duree TEXT NOT NULL, repetitions TEXT NOT NULL, intensite INTEGER NOT NULL );
\set EmilyUid 36df8b1c-cc52-11ea-b508-784f437b7506 \set MishaUid 36e08c92-cc52-11ea-b508-784f437b7506 \set OlegUid 36e17922-cc52-11ea-b508-784f437b7506 \set JuanUid 36e25108-cc52-11ea-b508-784f437b7506 insert into auth_user(username, password, first_name, last_name, email, is_staff, is_active, date_joined, is_superuse...
create table HA_ACTIVITY_TIME ( type varchar(50) primary key, description varchar(100), task_time int not null ); insert into HA_ACTIVITY_TIME (type, description, task_time) values ('ACTIVITY', 'Required Practice Activity - Flash', 10); insert into HA_ACTIVITY_TIME (type, description, task_time) values ('ACTIVITY_STA...
-- Tested on MySQL /* mostExpensive Mr. Cash wants to keep track of his expenses, so he has prepared a list of all the products he bought this month. Now he is interested in finding the product on which he spent the largest amount of money. If there are products that cost the same amount of money, he'd like to fin...
DROP TABLE IF EXISTS AUTHOR; CREATE TABLE AUTHOR( ID BIGINT NOT NULL auto_increment PRIMARY KEY, first_name VARCHAR(255), LAST_NAME VARCHAR(255), EMAIL VARCHAR(255), PHONE_NUMBER VARCHAR(255) ); DROP TABLE IF EXIS...
-- Generate SQL -- Version: V5R1M0 010525 -- Generated on: 19.08.02 12:43:15 -- Relational Database: BNK400DB -- Standards Option: DB2 UDB AS/400 CREATE TABLE RSB59TB.BANKDPRT ( PARTYID INTEGER NOT NULL DEFAULT 0 , BIC_RCC CHAR(10) CCSID 1025 NOT NULL D...
DROP PROCEDURE CPI.UPDATE_GIAC_OP_TEXT_Y; CREATE OR REPLACE PROCEDURE CPI.update_giac_op_text_y ( p_giop_gacc_tran_id giac_direct_prem_collns.gacc_tran_id%TYPE, p_iss_cd IN giac_comm_payts.iss_cd%TYPE, p_prem_seq_no IN giac_comm_payts.prem_seq_no%TYPE, p_inst_no ...
--Create a procedure that searches for salaries within a range Create Procedure Employees_By_Salary @search int as begin SELECT CONCAT(e.Lastname, ',', e.Firstname) as 'Name', j.Description as 'Job', FORMAT(J.Salary, 'C') as Salary FROM Employee e JOIN Job j on j.Id = e.JobId Where salary > @search ORD...
# /* # Navicat Premium Data Transfer # # Source Server : localhost # Source Server Type : MySQL # Source Server Version : 50719 # Source Host : localhost:3306 # Source Schema : shiro # # Target Server Type : MySQL # Target Server Version : 50719 # File Encoding : 65001 #...
INSERT INTO booking VALUES('100B',122,'15-JAN-19'); INSERT INTO booking VALUES('101B',224,'16-JAN-19'); INSERT INTO booking VALUES('102B',225,'16-JAN-19'); INSERT INTO booking VALUES('103B',226,'16-JAN-19'); INSERT INTO booking VALUES('104B',227,'18-JAN-19'); INSERT INTO booking VALUES('105B',228,'17-JAN-19');
DROP TABLE IF EXISTS `user_file_tag`; --;; DROP TABLE IF EXISTS `user_file`;
--github.com/imsunnnyjha SELECT NAME FROM EMPLOYEE WHERE SALARY>2000 AND MONTHS <10 ORDER BY EMPLOYEE_ID;
INSERT INTO `serie` (OwnerId, Name, AirDate, LastSeason, LastEpisode, Color) VALUES (':owner_id', ':name', ':airdate', ':season', ':episode', ':color');
drop procedure if exists Guardar_Publicidad; delimiter $$ create procedure Guardar_Publicidad(_idplan int, _idempresa int, _imagen varchar(250), _fechainicio date, _fechafin date) begin declare _di...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3308 -- Tiempo de generación: 13-04-2020 a las 18:12:12 -- Versión del servidor: 8.0.18 -- Versión de PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
/* Navicat MySQL Data Transfer Source Server : joseph Source Server Version : 50625 Source Host : 127.0.0.1:3306 Source Database : hospital Target Server Type : MYSQL Target Server Version : 50625 File Encoding : 65001 Date: 2015-12-23 21:39:08 */ SET FOREIGN_KEY_CH...
-- -- maintained on scooter at /home/collspec/projects/staff-portal/sprint-server/src/db/queries/collection/suggestions/continuations_isn_match.sql -- -- use -- ="('" & M2 & "'), " -- on spreadsheet to get values drop table if exists possible_matches; create temp table possible_matches (identifier varchar); i...
declare prog clob; scanner scanner_clob; begin prog := q'{. fo0 bar }'; prog := prog || rpad('*', 10000, '*') || rpad('*', 10000, '*') || rpad('*', 10000, '*') || rpad('*', 10000, '*') || rpad('*', 10000, '*') || rpad('*', 10000, ...
/* 22. MOstrar listado d eclientes (numero de cleinte y el nombre) mostrar tambien el numero de vendedor y su nombre. */ SELECT c.id, c.nombre, v.id, CONCAT(v.nombre, ' ', v.apellidos) AS 'Vendedor' FROM clientes c, vendedores v WHERE c.vendedor_id = v.id;
/*---------------------------------------------- * 알수도 있는 친구 ---------------------------------------------- */ SELECT * FROM maybe_friend; DELETE FROM maybe_friend; /*============================================= */ CREATE TABLE maybe_friend( myId NUMBER(10), maybe_friendId NUMBER(10), together_f...
/* Write a SQL query to determine the birth year of Emma Stone */ SELECT birth FROM people WHERE name LIKE "Emma Stone";
/* * Napoleon-Christos Oikonomou AEM:7952 * Aggelos Vasileiadis AEM:8010 * Alexandros-Charalampos Kyprianidis AEM:8012 */ SELECT "title" FROM "Song" WHERE release_year = 2016
-- ユーザのエイリアス drop table if exists USER_ALIAS cascade; create table USER_ALIAS ( USER_ID INTEGER not null , AUTH_KEY character varying(64) not null , ALIAS_KEY character varying(256) not null , ALIAS_NAME character varying(256) not null , ALIAS_MAIL character varying(256) , USER_INFO_UPDATE integer , ROW_...
select p.cs_uri_stem, p.date_day from ( select count(cs_uri_stem) from logs where sc_status="200" AND cs_uri_stem NOT LIKE 'index%' group by date_day, cs_uri_stem ) as p group by date_day;
--UC5 Delete a contact from address book by name use address_book_service select * from address_book_table delete from address_book_table where first_name = 'Anil' and last_name = 'Kumar';
SET DATABASE SQL SYNTAX ORA TRUE; DROP TABLE AUTOMOBILE IF EXISTS; CREATE TABLE AUTOMOBILE ( automobileId INTEGER IDENTITY, modelName VARCHAR(10) NOT NULL, createdDate DATE NOT NULL, updatedDate DATE NOT NULL );
SET serveroutput ON DECLARE v_exists NUMBER := 0; BEGIN SELECT DISTINCT 1 INTO v_exists FROM all_constraints WHERE owner = 'CPI' AND constraint_name = 'GIAC_COMM_PAYTS_PK'; IF v_exists = 1 THEN EXECUTE IMMEDIATE ('ALTER TABLE CPI.GIAC_COMM_PAYTS DROP CONSTR...
-- To assign SELECT only access, use this example: -- GRANT SELECT ON "DB2INST1"."VIEW_CANVAS_SECTIONS" TO USER DASHBOARD CREATE OR REPLACE VIEW DB2INST1.VIEW_CANVAS_SECTIONS ( section_id, course_id, name, status, start_date, end_date ) AS WITH active_classes AS ( SELECT DISTINCT course_id, class_id ...
-- -- Base de données 'moovy' -- CREATE DATABASE `moovy` CHARACTER SET utf8 COLLATE utf8_general_ci; USE `moovy`; -- -- Structure de la table 'actor' -- CREATE TABLE IF NOT EXISTS `actor` ( `id` int(4) NOT NULL AUTO_INCREMENT, `last_name` varchar(20) NOT NULL, `first_name` varchar(20) DEFAULT NULL, `birth_dat...
DROP DATABASE IF EXISTS accounting-revenue; CREATE DATABASE accounting-revenue;
# 조회 select * from user; select * from blog; select * from category; select * from comment; select * from post; # 삭제 delete from comment; delete from post; delete from blog; delete from user; delete from category; # 자동증가 초기화 alter table comment auto_increment=1; alter table post auto_increment=1; alter table blog aut...
use socialvoyce; drop table if exists initialVotingTag; create table initialVotingTag(tag LONGTEXT); LOAD DATA infile '/opt/database-migration/sourcefiles/votingtag.txt' INTO TABLE initialVotingTag LINES TERMINATED BY '\n'; drop table if exists votingTagPass1; create table votingTagPass1 as select distinct...
INSERT INTO lk_user_roles VALUES(1, 'Super Administrator'), (2, 'Administrator'), (3, 'Secretary'), (4, 'Student Assistant')
update workflow_billfield set type=25 where billid=19 and fieldname='cptid' /
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2021 at 06:33 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
alter table addedProduct add foreign key(productid) references productDetail(productid) on delete restrict; alter table cliprTagTable add foreign key(cliprTag) references allTags(id) on delete restrict; alter table cliprTagTable add foreign key(productid) references productDetail(productid) on delete restrict; alter ta...
SELECT dropIfExists('view', 'sopack'); CREATE VIEW sopack AS SELECT pack_id AS sopack_id, pack_head_id AS sopack_sohead_id, pack_printed AS sopack_printed, pack_shiphead_id AS sopack_cosmisc_id FROM pack WHERE (pack_head_type='SO'); REVOKE ALL ON TABLE sopack FROM PUBLIC; GRANT ALL ON TABLE sopack TO GROU...
SELECT TOP 1 MAX(Salary * Months), COUNT(Name) FROM Employee GROUP BY (Salary * Months) ORDER BY (Salary * Months) DESC;
CREATE DATABASE zoo; use zoo; CREATE TABLE pets ( name VARCHAR(20), pet VARCHAR(10) ); INSERT INTO pets (name, pet) VALUES ('Birillo', 'cane'), ('Graffio', 'gatto');
insert into signin_user_profiles (userid) value (1);
DROP TABLE IF EXISTS student_details; DROP SEQUENCE IF EXISTS details_seq; CREATE SEQUENCE details_seq START WITH 1000; CREATE TABLE student_details ( id BIGINT NOT NULL PRIMARY KEY DEFAULT nextval('details_seq'), student_id BIGINT NOT NULL UNIQUE, first_parent VARCHAR(128) DEFAULT '-', second_parent...
-- zaczac od studies insert into Studies values (1, 'informatyka'); insert into Studies values (2, 'fizyka'); insert into Studies values (3, 'matematyka'); insert into Enrollment values (1, 4, 1, '20200325'); insert into Enrollment values (2, 5, 2, '20190513'); insert into Enrollment values (3, 3, 3, '201806...
CREATE TABLE `storage` ( `plate` VARCHAR(50) NOT NULL, `inventory` LONGTEXT NOT NULL, PRIMARY KEY (`plate`) ) COLLATE='latin1_swedish_ci' ;
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.29 - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.3.0.4984 -- -------------------------------------------------------...
create table orders ( id serial primary key, user_id integer not null, status integer not null default 0, uuid text not null unique, order_sum numeric );
-- MySQL dump 10.13 Distrib 5.7.12, for osx10.11 (x86_64) -- -- Host: localhost Database: rosso -- ------------------------------------------------------ -- Server version 5.7.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
-- --------------------------------- DELETE FROM `creature_questrelation` WHERE `quest`='934'; -- Crown of the Earth DELETE FROM `creature_questrelation` WHERE `quest`='614'; -- The Captain's Chest
-- Copyright (c) 2020, Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -- Coypright (c) 2020, Transaction Processing Performance Council -- TPC-H Query 10 - Returned Item Reporting SELECT /*+ set_var(use_secondary_engine=forced) *...
drop table RoleProvisioningProfile; -- ResourceProvisioningProfile alter table ResourceProvisioningProfile add column createAccountProvisioningFailoverWorkflow varchar(255); alter table ResourceProvisioningProfile add column updateAccountProvisioningFailoverWorkflow varchar(255); alter table ResourceProvisioning...
-- migrate made with migrate script -- Do not edit this file unless you know what you are doing. -- You should create a new migrate with ./migrate new CREATE TABLE IF NOT EXISTS versao( code INT PRIMARY KEY AUTO_INCREMENT, versao VARCHAR(30) NOT NULL, lancamento DATETIME NOT NULL); CREATE TABLE IF NOT EXISTS migra...
CREATE VIEW dbo.projects_vehicle_models_v AS SELECT DISTINCT vehicle_model_id, vehicle_model_name, oem_vehicle_model_name_my, project_id, is_generated, dbo.countProjectHighlights(project_id) AS hc, dbo.countProjectFeatures(project_id) AS fc, status_id, img_filenam...
-- purpose: Defines some test-data for the events table -- author: Albin Remnestål (albinre@kth.se) -- date: 2017-03-13 use albinre; -- insert some event data insert into events (name, description, passphrase, start_date) values ("Gamlingpub", "Massa gamlingar kommer på pub", "bättreförr", "2017-03-01 17:...
load data local infile '/home/seancrwhite/HDD/Data/fma/data/db/features.csv' into table SONG.FEATURES columns terminated by ',' lines terminated by '\n';
delete from HtmlLabelIndex where id=17786 / delete from HtmlLabelInfo where indexid=17786 / INSERT INTO HtmlLabelIndex values(17786,'项目编号') / INSERT INTO HtmlLabelInfo VALUES(17786,'项目编号',7) / INSERT INTO HtmlLabelInfo VALUES(17786,'Project Code',8) / INSERT INTO HtmlLabelInfo VALUES(17786,'項目編號',9) / delete fro...
SELECT id as user_id ,name, mobileno ,gender from yjp_ods.ods_trd_bizuser where istestuser=1
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: juufam -- ------------------------------------------------------ -- Server version 5.5.40-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
-------------------------------- Programación PL/SQL: Bloques anónimos ------------------------------- -- Genera los siguientes códigos PL/SQL sobre la base de datos de ciclistas: -- 1. Escribe una función que tenga como parámetro de entrada un equipo y devuelva la media de edad de sus ciclistas. -- Tratar la e...
-- 10 Muestre una lista con nombre de ciudad y cantidad de afiliaciones por cada una SELECT C.NOMBRE, COUNT(*) AS CANTIDAD FROM CIUDADES C JOIN AFILIACIONES ON CIUDAD = C.COD_CIUDAD GROUP BY C.NOMBRE ORDER BY C.NOMBRE; -- 11 Muestre la cantidad de veces que se ha consumido el producto de nombre: VODKA SELECT NOMBRE,...
SELECT x.Channel, x.date, COALESCE(mdl.area, x.area) as area, COALESCE(mdl.region, x.region) as region, COALESCE(mdl.branch, x.branch) as branch, COALESCE(mdl.subbranch, x.subbranch) as subbranch, COALESCE(mdl.cluster, x.cluster) as cluster, CASE WHEN mdl.area IS NOT NULL THEN 'MOSTDOM' ELSE x.lookup END a...
-- phpMyAdmin SQL Dump -- version 3.3.9.2 -- http://www.phpmyadmin.net -- -- Host: -- Generation Time: Aug 07, 2012 at 07:05 AM -- Server version: 5.5.23 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RES...
create table quests_categories ( id serial not null constraint quests_categories_pkey primary key, category text ); alter table quests_categories owner to michal;
delete from HtmlLabelIndex where id = 20859 / delete from HtmlLabelInfo where indexId = 20859 / INSERT INTO HtmlLabelIndex values(20859,'工作流未结束,请等待') / INSERT INTO HtmlLabelInfo VALUES(20859,'工作流未结束,请等待',7) / INSERT INTO HtmlLabelInfo VALUES(20859,'workflownotend',8) / delete from HtmlLabelIndex where id = 20887 /...
select AVG(salary), COUNT(*) from employees where department_id==90;
select codpie from pieza where peso > ANY (select peso from pieza where nompie LIKE '_ornillo'); commit; exit;
INSERT INTO HtmlLabelIndex(id,Indexdesc) select h.indexid, h.labelname from htmllabelinfo h where not exists (select * from HtmlLabelIndex i where i.id = h.indexid) and h.languageid = 7 /
--f_number VARCHAR(256) PRIMARY KEY, --duration VARCHAR(256), --destination VARCHAR(10) REFERENCES airport(designator), --origin VARCHAR(10) REFERENCES airport(designator), --seat_capacity INT CHECK(seat_capacity > 0) INSERT INTO flight VALUES('SB123', 'AAH' , 'AAR' , 100); INSERT INTO flight VALUES('SB124', 'AAR' , '...
CREATE TABLE birthday_entry ( id serial primary key, name varchar(255) not null, birth_day integer not null, birth_month integer not null, birth_year integer not null, notes varchar(255) ); INSERT INTO birthday_entry VALUES (DEFAULT, 'Molly McButter', 2, 12, 1970, 'M...
-- ## 2022-07-11 CREATE TABLE `sys_report_template` ( `name` varchar(100) NOT NULL, `title` varchar(255) NULL, `filepath` varchar(255) NOT NULL, `master` int(1) NULL, `icon` mediumblob, PRIMARY KEY (`name`), UNIQUE KEY `uix_sys_report_template_filepath` (`filepath`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2015 at 04:30 AM -- Server version: 10.1.8-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
\c DROP TABLE IF EXISTS projects CREATE TABLE IF NOT EXISTS projects( id SERIAL PRIMARY KEY, title VARCHAR(255), description TEXT, image_url TEXT, link TEXT, user_id INTEGER );
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 21, 2016 at 03:19 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
CREATE TABLE HINMOKU( NRHINMOKU CHAR(7) NOT NULL, TXHINBAN CHAR(15) NOT NULL, TXHINMEI VARCHAR(40) NOT NULL, KBHINGRP CHAR(4) NOT NULL, PRHANBAI INTEGER DEFAULT 0 NOT NULL, KBZAIKOUM CHAR(4) D...
USE EMP_DEPT; --1) Write a query to Display the DEPT details from department table. SELECT * FROM Department; --2) Write a query to Display the EMP details from employees SELECT * FROM Employees; --3) Write a query to Display empno, ename and job for all employees SELECT EMPNO, ENAME, JOB FROM Employees; --4) Write...
select d_year,c_nation,sum(lo_revenue-lo_supplycost) as profit from lineorder,supplier,customer,part,ddate where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_partkey = p_partkey and lo_orderdate = d_datekey and c_region = 1 and s_region = 1 and (p_mfgr = 0 or p_mfgr = 1) group by d_year,c_nation;
DECLARE v_result NUMBER; v_parentid INTEGER; v_message NCLOB; BEGIN v_parentid := :ParentId; v_message := :Message; BEGIN SELECT s1.threadid INTO v_result FROM (SELECT col_id AS ThreadId, Row_number() ...
create or replace temp table expenses as select index i, value::int v from table(flatten(SPLIT( '1721 979 366 299 675 1456' , '\n'))); select a.v*b.v*c.v r from expenses a, expenses b, expenses c where a.i>b.i and b.i>c.i having a.v+b.v+c.v=2020;
-------------------------------------------------------- -- 파일이 생성됨 - 수요일-10월-20-2021 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table BINZIP_HOST -------------------------------------------------------- CREATE TABLE "SCOTT"."BINZ...
SELECT m.id,m.`name` FROM zume.mall AS m
 CREATE VIEW [Reporting].[Account] AS WITH cte AS ( SELECT a.Account, ROW_NUMBER() OVER(ORDER BY COUNT(*) desc) AS AccountRanking FROM TextMining.Tweet t (NOLOCK) INNER JOIN [TextMining].Accounts a (NOLOCK) ON a.TweetID = t.TweetID GROUP BY a.Account ) SELECT a.TweetID , a.Account , c.Accou...
CREATE TABLE CATEGORY( CATEGORY_NAME VARCHAR(255), CATEGORY_DESC VARCHAR(255), INSTANCE_ID VARCHAR(255), INTERNAL BOOLEAN );
update workflow_browserurl set columname = 'Rolesmark' where id = 65 /
set serveroutput on; set verify on; create or replace procedure insertplayer( p_id Player1.pid%TYPE, p_name Player1.pname%TYPE, n_ick Player1.nick%TYPE, r_egion Player1.region%TYPE, p_rofile Player1.profile%TYPE, t_id Player1.tid%TYPE) IS begin IF r_egion = 'SEA' THEN insert into Player1 (pid, pn...
DROP TABLE equity_orders; CREATE TABLE equity_orders ( order_identifier INTEGER, order_event_number INTEGER, order_placement_date VARCHAR2(50), parent_order_id INTEGER, parent_order_placement_date ...
DROP PROCEDURE CPI.ADD_PAR_STATUS_NO_ENDT; CREATE OR REPLACE PROCEDURE CPI.ADD_PAR_STATUS_NO_ENDT ( p_par_id IN gipi_parlist.par_id%TYPE, p_line_cd IN gipi_parlist.line_cd%TYPE, p_iss_cd IN gipi_parlist.iss_cd%TYPE, p_negate_item IN VARCHAR2, p_prorate_flag IN gipi_wpolbas.prorate_flag%TYPE, p_comp_sw IN VA...
-- Committed SET SEARCH_PATH TO parlgov; drop table if exists q5 cascade; -- You must not change this table definition. CREATE TABLE q5( countryName VARCHAR(50), partyName VARCHAR(100), partyFamily VARCHAR(50), stateMarket REAL ); -- You may find it convenient to do thi...
-- Write a script that lists all shows contained in hbtn_0d_tvshows that -- have at least one genre linked. -- Each record should display: tv_shows.title - tv_show_genres.genre_id -- Results must be sorted in ascending order by tv_shows.title and tv_show_genres.genre_id -- You can use only one SELECT statement -- The d...
CREATE EXTENSION hll VERSION '2.10'; ALTER EXTENSION hll UPDATE TO '2.11'; ALTER EXTENSION hll UPDATE TO '2.12';
insert into `user`(`id`,`name`,`email`,`username`,`password`) values (5,'admin','admin@abc.com','admin','admin'), (6,'Krishna','krishna@abc.com','krishnap','123456'), (7,'Kevin','kevin@abc.com','kevina','123456'), (8,'John','john@abc.com','johna','123456');
select h.salesorderno as sales_order_number, d.linekey as line_number, case orderdate when '1753-01-01' then null else orderdate::date end as order_date, h.ordertype as order_type, case when shipexpiredate::date < '2011-01-01' or shipexpiredate::date >= '2999-01-01' then null else shipexpireda...
-- Cancel hold if due Date is crossed delimiter // create procedure cancelHold( in ISBN varchar(15), in copyID int, out status int ) begin declare dueDate date; declare bookStatus varchar(20); set bookstatus = 'Hello'; set status = 0; select bookCopies.dueDate into dueDate from bookCopies where bookCopies.ISBN...
-- SPDX-License-Identifier: FSFAP BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "excluded" ( "domain_name" TEXT, PRIMARY KEY("domain_name") ); CREATE TABLE IF NOT EXISTS "results" ( "domain_name" TEXT NOT NULL, "status_code" INTEGER, "timestamp" INTEGER, PRIMARY KEY("domain_name") ); CREATE TABLE IF NOT EXISTS "s...
SELECT dropIfExists('CONSTRAINT', 'imageass_imageass_image_id_fkey');
UPDATE PATIENTS_BILLABLE_ITEMS SET PRICE = PRICE * .5 FROM ( SELECT PATIENTS_BILLABLE_ITEMS.ID as ID, DATEDIFF(DAY, PATIENT_RECORDS.SUBMISSION_DATE, PATIENT_RECORDS.DISCHARGE_DATE) AS Duration FROM PATIENTS_BILLABLE_ITEMS JOIN PATIENT_RECORDS ON PATIENTS_BILLABLE_ITEMS.PATIENT_RECORDS_ID = PATIENT_RECORDS.RECOR...
create or replace PROCEDURE tempPrc AS maxid integer; begin maxid := 5000 ; for i in 1 .. maxid loop insert into workflow_billfield (billid) values(-1); end loop; end; / call tempPrc() / delete from workflow_billfield where billid=-1 / drop PROCEDURE tempPrc /
set transaction isolation level repeatable read begin transaction select * from shop waitfor delay '00:00:15' select * from shop commit transaction set transaction isolation level serializable begin transaction select * from shop waitfor delay '00:00:15' select * from shop commit transaction
EXEC wypozyczalnia.register('testUser','haslo','Test','Testowy',TO_DATE('1999-09-09','YYYY-MM-DD')); EXEC DBMS_OUTPUT.PUT_LINE('Zalogowany. Twoje ID: '||wypozyczalnia.login('testUser','haslo')); EXEC wypozyczalnia.wyswietlAdresyDostawy(); EXEC DBMS_OUTPUT.PUT_LINE(wypozyczalnia.dodajAdresDostawy('Prosta','15B','05-300...
select * from hidratacao;
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 07, 2019 at 02:32 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
Create TABLE englishWord( ew_wordid INTEGER PRIMARY KEY -- auto increment if NULL inserted , ew_word VARCHAR(20) UNIQUE ); CREATE TABLE englishWordOpposite( ewo_englishWordID INTEGER , ewo_englishOppositeID INTEGER , FOREIGN KEY(ewo_englishWordID) REFERENCES englishWord(ew_wordid) , FOREIGN KEY(ewo_e...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 14, 2020 at 12:46 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...