text
stringlengths
6
9.38M
create database AgencijaDogadjaji use AgencijaDogadjaji create table Drzava( DrzavaID int not null primary key identity (1,1), Naziv nvarchar(50) not null ) create table Grad( GradID int not null primary key identity (1,1), Naziv nvarchar(50) not null, DrzavaID int not null foreign key references Drzava(DrzavaID) ) ...
select pieces, price, date, type from rates where type = 'Rate::Buy' order by date asc;
CREATE TABLE users ( id serial PRIMARY KEY, user_name varchar(255), user_type varchar(255), creation_date timestamp, correction_date timestamp DEFAULT current_timestamp ); CREATE TABLE resume ( id serial PRIMARY KEY, resume_title varchar(255), user_id INTEGER REFERENCES users(id), work_expirience ...
--// table: LauncherItemIcons create table [LauncherItemIcons] ( [LauncherItemId] text not null /* ランチャーアイテムID */, [IconBox] text not null /* アイコン種別 */, [Sequence] integer not null /* 連結順序 */, [CreatedTimestamp] datetime not null /* 作成タイムスタンプ UTC */, [CreatedAccount] text not null /* 作成ユーザー名 */, [Creat...
DROP PROCEDURE CPI.CHECK_LINE_SUBLINE_ITEM_PERIL; CREATE OR REPLACE PROCEDURE CPI.check_line_subline_item_peril ( p_par_id IN gipi_wpack_line_subline.par_id%TYPE, p_pack_line_cd IN gipi_wpack_line_subline.pack_line_cd%TYPE, p_pack_subline_cd IN gipi_wpack_line_subline.pack_...
TRUNCATE ies_curso_lugares_instruccion CASCADE; ALTER TABLE ies_curso_lugares_instruccion DROP CONSTRAINT ies_curso_lugares_instruccion_pkey; ALTER TABLE ies_curso_lugares_instruccion DROP COLUMN ies_curso_id; ALTER TABLE ies_curso_lugares_instruccion ADD COLUMN id BIGSERIAL PRIMARY KEY NOT NULL; ALTER TABLE ies_c...
-- 판매 -- 판매 테이블 삭제 DROP TABLE ORDERS; -- 판매 고유번호 시퀀스 삭제 DROP SEQUENCE ORDERID; -- 판매 테이블 생성 CREATE TABLE ORDERS( -- 판매 고유번호 ID VARCHAR2(50) PRIMARY KEY, -- 판매자 사번 EMPNO VARCHAR2(20), -- 판매 제품코드 PROCODE VARCHAR2(20), -- 판매 수량 PROAMOUNT NUMBER, -- 등록날짜 REGDATE DATE, -- 고객명 CUSTOMER VARCHAR2(30), -- 고객주소 AD...
create table file( id bigint primary key auto_increment, name varchar(50) comment '文件名', is_dir tinyint default 0 comment '文件类型(目录/文件)', parent_path varchar(255) default '/' comment '文件url访问父路径(只记录一级)', real_path va...
SELECT setMetric('EmployeeChangeLog', 't');
#************************************ Creation Tables for all the 6 stocks and importing the data************************************** #Creating the new assignment Database create database assignment; use assignment; # Creation of Bajaj Auto Table CREATE TABLE bajaj ( `Date` VARCHAR(30) NOT NULL, `Open Price...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 12 Jul 2018 pada 15.00 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
/***************************************************************************/ /* EXIBE O PLANO DE EXECUCAO GERADO PELO ULTIMO COMANDO "EXPLAIN PLAN FOR" */ /***************************************************************************/ SELECT * FROM TABLE(dbms_xplan.display);
update workflow_browserurl set browserurl = '' where id in (124,125,126,20,21,118,134) /
DROP PROCEDURE ReportCellChange IF EXISTS; DROP PROCEDURE RegisterDevice IF EXISTS; DROP PROCEDURE ReportDeviceActivity IF EXISTS; DROP PROCEDURE NoteSuspiciousCohort IF EXISTS; DROP PROCEDURE getSimboxDeviceStatus IF EXISTS; DROP PROCEDURE ShowSimboxActivity__promBL IF EXISTS; DROP PROCEDURE getSuspe...
-- up -- CREATE VIRTUAL TABLE ad USING FTS5 ( -- id, name, description, region, category, phone, email, site --); -- down -- drop table ad; CREATE TABLE ad ( id varchar(50) NOT NULL, name text, description text, region text, category text, phone varchar(255), email varchar(255), site varchar(2...
CREATE TABLE `account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_type` int(2) NOT NULL COMMENT '1 - Assets, 2 - Liabilities, 3 - Income, 4 - Expenses, 5 - Equity', `level1` int(11) NOT NULL, `level2` int(11) NOT NULL, `account_name` varchar(100) NOT NULL, `currency` varchar(10) DEFAULT NULL, `deb...
with c as ( select iif(c.TariffId = 4, N'ДЗ', N'КЗ') as "Тип займа" , cast(format(c.DateStarted, 'yyyyMM01') as date) as "Месяц" , iif(right(c.DogovorNumber, 3) = '001', N'Новый', N'Повторный') as IsNewClient , w.Description as "Канал выдачи" , c.Amount as "Сумма займа" ...
-- komentaras yra du bruksniukai; -- susikuriam duomenu baze; CREATE DATABASE Hospital4; -- pasitikrinam show database; -- pasirenkam db use Hospital4; -- susikuriam lentele; CREATE TABLE Doctors ( Id INT(6) AUTO_INCREMENT PRIMARY KEY, Name VARCHAR(30), Lname VARCHAR(30) ); -- pasitikrinam show tabl...
SELECT * FROM User WHERE @rid = <%= userId %> FETCHPLAN *:-1
rem rem $Header: examp14.sql,v 1.1 1992/05/12 22:02:45 RVASIRED Exp $ rem Rem Copyright (c) 1991 by Oracle Corporation Rem NAME Rem examp14.sql - <one-line expansion of the name> Rem DESCRIPTION Rem <short description of component this file declares/defines> Rem RETURNS Rem Rem NOT...
-- -- P_L1_TO_L3_CGW (Procedure) -- CREATE OR REPLACE PROCEDURE DWH_USER.P_L1_TO_L3_CGW (P_PROCESS_DATE VARCHAR2) IS VCOUNT NUMBER; VDATE_KEY NUMBER; VSTATUS2 NUMBER; VDATE DATE := TO_DATE(TO_DATE(P_PROCESS_DATE,'YYYYMMDD'),'DD/MM/RRRR'); BEGIN SELECT COUNT(*) INTO VCOUNT FROM CDR_HEAD@DWH05T...
CREATE TABLE IF NOT EXISTS halls ( id SERIAL PRIMARY KEY, row INTEGER NOT NULL, place INTEGER NOT NULL, price INTEGER NOT NULL, booked BOOLEAN DEFAULT FALSE ); CREATE TABLE IF NOT EXISTS accounts ( id SERIAL PRIMARY KEY, username VARCHAR(128) NOT NULL, phone VARCHAR(32) NOT NULL, halls_id INTEGER R...
/* Create Table Comments, Sequences for Autonumber Columns */ COMMENT ON TABLE ADM_TPERM IS 'TABLA DE PERMISOS DE PERFIL' ; COMMENT ON COLUMN ADM_TPERM.PERM_PERM IS 'id de tabla permiso' ; COMMENT ON COLUMN ADM_TPERM.PERM_NOMB IS 'Nombre del Permiso' ; COMMENT ON COLUMN ADM_TPERM.PERM_MODU IS 'LLAVE FORANEA DE...
CREATE TABLE carrera ( id bigint NOT NULL PRIMARY KEY REFERENCES curso(id), tipoDeCarrera VARCHAR(100) NOT NULL );
select * from orders order by starttime; --delete from orders where processid='230012' --update orders SET status='In Progress' where processid='232512' --delete from orders where starttime is null; --select * from producttracker; --drop table producttracker;
CREATE TABLE IF NOT EXISTS ycf_language ( languageID int(11) NOT NULL AUTO_INCREMENT, languageName varchar(255) NOT NULL, languageIcon varchar(255) NOT NULL, languageEnable tinyint(1) NOT NULL DEFAULT '1', languageCurrent tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (languageID...
INSERT into "ShopTest".public.users (id, login, password, type) VALUES (2, 'Pawel', 'haslo', 2); INSERT into "ShopTest".public.users (id, login, password, type) VALUES (1, 'codecooler', 'password', 2); INSERT into "ShopTest".public.users (id, login, password, type) VALUES (3, 'mentor', '1234', 1); INSERT into "ShopTest...
/*Creamos una DB*/ CREATE DATABASE discografica; /*Creamos Tablas*/ use discografica; CREATE TABLE `bandamusical` ( `id` INT NOT NULL AUTO_INCREMENT, `nombre` VARCHAR(50) NOT NULL, `integrantes` int not null, `fechaInicio` datetime not null, `fechaSeparacion` datetime null, `pais` varchar(50) not null,...
CREATE FUNCTION zlib_decompress(bytea) RETURNS text AS 'MODULE_PATHNAME', 'pg_zlib_decompress' LANGUAGE C IMMUTABLE STRICT;
CREATE TABLE persistent_logins ( username VARCHAR(64) NOT NULL, series VARCHAR(64) NOT NULL, token VARCHAR(64) NOT NULL, last_used TIMESTAMP NOT NULL, PRIMARY KEY(series)) ENGINE=InnoDB; CREATE TABLE tbl_address ( id BIGINT NOT NULL AUTO_INCREMENT, createdate TIMESTAMP DEFAULT 0, lastmodify TIMESTAMP DEFAULT CURRENT_T...
alter View PTS_GSTR3 as --------------------------------AR INVOICE & DEBIT NOTE---------------- select inv.docentry ,inv.objtype ,PIndicator ,datename(month,inv.docdate) 'Month' ,year(inv.docdate) 'Year' ,inv.docdate ,iv1.VisOrder ,ITM.GstTaxCtg 'Item_Tax_Type' ,(CASE When ITM.ItemClass = 1...
# --- !Ups -- ----------------------------------------------------- -- Table `user` -- ----------------------------------------------------- CREATE TABLE `user` ( `id` INT NOT NULL AUTO_INCREMENT, `firstname` VARCHAR(45) NOT NULL, `lastname` VARCHAR(45) NOT NULL, `password` VARCHAR(45) NOT NULL, `deleted_at`...
/*!40101 SET NAMES utf8 */; create table `t_grade` ( `id` int (11), `gradeName` varchar (60), `gradeDesc` varchar (3000) ); insert into `t_grade` (`id`, `gradeName`, `gradeDesc`) values('1','软件开发','12计算机科学与技术系本科'); insert into `t_grade` (`id`, `gradeName`, `gradeDesc`) values('2','软件应用','12计算机科学与技术系本科');
CREATE TABLE [AsData_PL].[MarketoCampaigns] ( [CampaignId] [bigint] NULL, [CampaignName] [nvarchar](max) NULL, [CampaignType] [nvarchar](max) NULL, [ProgramName] [nvarchar](max) NULL, [ProgramId] [bigint] NULL, [WorkspaceName] [nvarchar](max) NULL, [createdAt] DATETIME2 NULL, [updatedAt] DATETIME2 NULL, [acti...
UPDATE Users SET LockoutEnd = @LockoutEnd WHERE ID = @ID
INSERT INTO mortes select municipio.skMunicipio, cast(date as date) as dataMorte, cast(new_deaths as int) as mortesConfirmadas from caso_full inner join municipio on city_ibge_code = municipio.codMunicipio where city is not null and city_ibge_code is not null and city_ibge_code > 1000000 order by date
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50617 Source Host : localhost:3306 Source Database : ghost3 Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2019-04-30 04:18:09 */ SET FOREIGN_KEY_C...
--liquibase formatted sql --changeset pavel.vrublevskij:create_role dbms:postgresql CREATE ROLE gr_example; --rollback DROP ROLE gr_example; --changeset pavel.vrublevskij:create_role_example_to_group dbms:postgresql CREATE ROLE example LOGIN ENCRYPTED PASSWORD 'md5cf8491476c86811bb684554dd19b374a' -- here are pas...
-- Fixed quest 4362 The Fate of the Kingdom, set PrevQuestId to 4361 -- This closes #512 UPDATE `quest_template` SET `PrevQuestId` = 4361 WHERE `entry` = 4362;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 19 Jan 2021 pada 16.44 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
insert into BlazonRequestNotificationSettings (subject, type, template) values ('Blazon Disapproved Task Request Notification', 'DISAPPROVED_REQUEST_NOTIFICATION', '<html><head></head><body></body></html>'); ALTER TABLE ReconciliationNotificationSettings ADD COLUMN managerRoleId bigint; ALTER TABLE ProvisioningNotif...
iPhone Themes, Winterboard Themes download
CREATE TABLE hookmoduleexceptions ( id CHAVE NOT NULL, id_shop CHAVE NOT NULL, id_module CHAVE NOT NULL, id_hook CHAVE NOT NULL, file_name CHARACTER VARYING(255), CONSTRAINT pk_hookmoduleexceptions PRIMARY KEY (id) );
/* 1. DML : Data Maniplulation Language 1) select : 조회시 사용. 2) insert : 데이터 입력시 사용. insert into 테이블명 values(데이터1, 테이터2, 테이터3); */ select * from dept; /* 테이블 복사하기.. create table 새로운테이블명 as select * from 복사할테이블명; */ create table dept01 as select * from dept; select * from dept01; /* 데이터 입력1) ex) insert into dept01...
CREATE TABLE IF NOT EXISTS `Telefones` ( `telefone` VARCHAR(45) NOT NULL, `id_cliente` INT(11) NOT NULL, PRIMARY KEY (`id_cliente`, `telefone`), CONSTRAINT `fk_telefones_cliente` FOREIGN KEY (`id_cliente`) REFERENCES `Cliente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_...
DECLARE v_Id NUMBER; v_errorcode NUMBER; v_errormessage NVARCHAR2(255); v_name NVARCHAR2(255); v_childdocs NUMBER :=0; v_subfolders NUMBER :=0; BEGIN v_errorcode := 0; v_ErrorMessage := ''; v_Id := :FolderId; -- get cms url of document by id ...
CREATE TABLE IF NOT EXISTS Users ( User_Id INT PRIMARY KEY Auto_Increment, User_Name VARCHAR(255) );
select count(*), count(p.Uid) -- update pm set pm.Uid = p.Uid from crh.ProductMetadata pm inner join prd.Product p on p.Id = pm.ProductId where pm.Uid is null
SELECT * FROM PLACES WHERE HOST_ID in (SELECT HOST_ID from PLACES group by HOST_ID having count(HOST_ID)>1); --https://programmers.co.kr/learn/courses/30/lessons/77487
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 24 nov. 2020 à 23:44 -- Version du serveur : 8.0.18 -- Version de PHP : 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
#查询员工号为176的员工的姓名和部门号和年薪 SELECT last_name, `department_id`, `salary`*12*(1+IFNULL(`commission_pct`,0)) AS 年薪 FROM employees WHERE `employee_id`=176;
## 已更新到服务器 INSERT INTO `ims_superdesk_jd_vop_task_cron` (`name`, `orde`, `file`, `no`, `desc`, `freq`, `lastdo`, `log`) VALUES ('_cron_handle_task_90_sync_organization_incrememt', 90, '_cron_handle_task_90_sync_organization_incrememt.inc.php', 0, '超级前台项目增量更新', 0, 1517904582, ''), ('_cron_handle_task_91_sync_virtuala...
drop table if exists #m ; select ProductId , PublishDate , MintosProductStatusName , ContractPayDay into #m from mts.vw_MintosProduct where PublishDate >= '20190601' ; select p.Productid , p.ClientId , p.ContractNumber , concat(c.LastName, ' ', c.FirstName, ' ', c.FatherName) as fio ...
-- question a, create database if not exists school ; use school; CREATE TABLE IF NOT EXISTS Student( RN INT (10) auto_increment primary key , Name VARCHAR(225) , Age INT (3), Gender VARCHAR(225) ) ; CREATE TABLE IF NOT EXISTS Subject( sID INT(10) AUTO_INCREMENT PRIMARY KEY, sName VARCHAR(225) ); ...
CREATE TABLE account( id bigint auto_increment, current_amount decimal (8), blocked_amount decimal (8) DEFAULT 0 ); CREATE TABLE transfer( id bigint auto_increment, debit_account_id bigint, credit_account_id bigint, amount decimal (8), status varchar, created_at timestamp not null, ...
INSERT INTO Pending (user_id, tool_id, duration, date) VALUES($1, $2, $3, $4);
alter table ACT_RU_EXECUTION add BUSINESS_STATUS_ NVARCHAR2(255); update ACT_GE_PROPERTY set VALUE_ = '6.7.0.1' where NAME_ = 'schema.version';
\T /root/it4300/basics/lab_SQL_basics.txt use books; show tables; select * from authors; select emp_id, emp_name from employees; select state from publishers; select title_id as "Book ID", title_name as "Title", price from titles order by price desc; select title_id as "Book ID", title_name as "Title" from tit...
/* deleting */ /*create a view to extract records from faculty table that has first name starting with A */ create view v_fac_fa as select * from faculty where fname like 'A%' select * from v_fac_fa /*changing the frst name for a faculty; update instead of alter view because the update is for data but alter is for n...
update CRM_CustomerInfo set language = 7 where language is null or language = 0 /
create table posts ( id int (11) not null PRIMARY KEY AUTO_INCREMENT, subject varchar(128) not null, content varchar(1000) not null, date datetime not null ); insert into posts (subject,content,date) values ('This is the subject', 'Loremn', '2020-11-05 12:16:30:04' ); SELECT * FROM posts ORDER BY id...
update MEMBER_SECURITY set LOGIN_PASSWORD = sha1(LOGIN_PASSWORD); update MEMBER set UPDATE_USER = hex(aes_encrypt(UPDATE_USER, 'himitsu'));
INSERT INTO HOUSE_DOMAIN (ADDRESS) VALUES ('123 Road'), ('13 Street'); INSERT INTO CAT_DOMAIN (AGE, NAME, SPEECH_VOLUME, MY_HOUSE_ID) VALUES (10, 'TESLA', 11, 1), (11, 'WHISKERS', 7, 1), (7, 'FELIX', 8, 2), (15, 'JACK', 1, 2);
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 07, 2011 at 02:55 PM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
CREATE TABLE CMVFS ( CMFNAM varchar (255) NOT NULL, CMDTYP integer NOT NULL, CMMODD bigint NOT NULL, CMWHOM varchar (50), CMDATA CLOB, PRIMARY KEY (CMFNAM) ); CREATE TABLE CMCHAB ( CMUSERID varchar (50) NOT NULL, CMABID varchar (50) NOT NULL, CMABPF integer, CMABTX CLOB, PRIMARY KEY (CMUSERID, C...
DROP PROCEDURE CPI.EXTRACT_EXPIRY3; CREATE OR REPLACE PROCEDURE CPI.extract_expiry3( p_line_cd IN GIPI_WPOLBAS.line_cd%TYPE, p_subline_cd IN GIPI_WPOLBAS.subline_cd%TYPE, p_pol_iss_cd IN GIPI_WPOLBAS.iss_cd%TYPE, p_issue_yy IN GIPI_WPOLBAS.issue_yy%TYPE, p_pol_seq_n...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-02-2019 a las 04:17:58 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
CREATE DATABASE familia_DB; USE familia_DB; DROP TABLE Mae; DROP TABLE Filho; CREATE TABLE IF NOT EXISTS Mae ( id_mae INT (4), nome_mae VARCHAR (50), PRIMARY KEY (id_mae) ); INSERT INTO Mae (id_mae, nome_mae) VALUES (01, "Tãnia Aparecida dos Santos"), (02, "Marcia Aparecida Ferreira"), (03, "Yasmin Parre...
SELECT codagent, numeagent, functia, codfirma INTO fosti_agenti FROM agenti
insert into operation_time ( start_time, end_time, elapsed_time ) values ( ?, ?, ? )
drop database customers; create database customers; use customers; select count(*) as 'customer count' from customer; select count(distinct company) as 'distinct companies' from customer; alter table customer add customerid int not null primary key auto_increment; select * from customer; ALTER TABLE customer cha...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50621 Source Host : localhost:3306 Source Database : net_mall Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2020-08-05 08:59:27 */ SET FOREIGN_KEY_CHECKS=0;...
DROP DATABASE IF EXISTS todo_db; CREATE DATABASE todo_db; \c todo_db CREATE TABLE todo( id serial primary key, subject varchar, content varchar ); INSERT INTO todo(subject, content) VALUES ('dragon', 'a large, serpent-like legendary creature that appears in the folklore of many cultures around the world.'), (...
create table user_account( id serial primary key, email text, password text, disabled bool default false, confirmed bool default false, role text, created_at timestamp default current_timestamp ); alter table user_account add constraint order_unique unique (...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 14 Sty 2019, 17:58 -- Wersja serwera: 10.1.28-MariaDB -- Wersja PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
DROP DATABASE IF EXISTS Agenda; CREATE DATABASE Agenda; USE Agenda; CREATE TABLE Contactos ( nombre varchar(25), dni varchar(9), PRIMARY KEY (dni) ) ENGINE=InnoDB; CREATE TABLE Telefonos ( id INT AUTO_INCREMENT, numero varchar(9), dni varchar(9), PRIMARY KEY(id), FOREIGN KEY(dni) REFERENCES Contac...
--First/One Time Setup to activate diserver on HANA DO BEGIN DECLARE dbName NVARCHAR(25) = 'HXE'; --<-- substitute XY1 by the name of your tenant DB -- Start diserver DECLARE diserverCount INT = 0; SELECT COUNT(*) INTO diserverCount FROM SYS_DATABASES.M_SERVICES WHERE SERVICE_NAME = 'diserver' AND DATABASE_NAM...
CREATE DATABASE testDB; CREATE DATABASE lucky; Use testDB; CREATE TABLE Attendees ( PersonID int, Heroname varchatestDBr(255), Age int, Assets int, Sector varchar(255) ); INSERT INTO Attendees ( PersonID ,Heroname , Age , Assets , Sector ) VALUES (1, 'Spider Man', 32, 300000, 'Fin'); ...
INSERT INTO COURSE (ID, NAME) VALUES (1, 'Spring course'); INSERT INTO COURSE (ID, NAME) VALUES (2, 'Java course'); INSERT INTO COURSE (ID, NAME) VALUES (3, 'SQL course'); INSERT INTO STUDENT (ID, COURSE_ID, NAME, GRADE) VALUES (1, 1, 'Peter', 'B'); INSERT INTO STUDENT (ID, COURSE_ID, NAME, GRADE) VALUES (2, 1, '...
/* * Engine: HSQLDB * Version: 0.0.1 * Description: Initial database structure and data. */ /* * Structure */ CREATE TABLE Greeting ( id BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, referenceId VARCHAR(255) NOT NULL, text VARCHAR(100) NOT NULL, version INT NOT NULL, ...
use socialvoyce; create table if not exists socialLike ( votingID int not null primary key, url varchar(1000), tweeter int, linkedin int, facebook_likes int, facebook_shares int, gPlus int ); UPDATE socialLike INNER JOIN scrubSocialLike a ON socialLike.url = a.url set socialLike.tweeter=a.tweeter, socialLike.l...
CREATE TABLE TNDS_M_POP_CKTS_AGE ( ORGA_CD VARCHAR2 (5) NOT NULL ENABLE, TDFK_NAME NVARCHAR2(4), CKTS_NAME NVARCHAR2(15), SEX VARCHAR2 (1) NOT NULL ENABLE, TTL_NUM NUMBER (10,0), AGE_0_4 ...
/* CREATE TABLE */ /* create table nov2016.tz_dst_offset ( timezone text primary key ,observes_dst character varying(50) ,offset_summer integer ,offset_fall integer ); */ /* timezone | ObservesDST |LTNov6 | GTNov6 | Notes --------------------------------|-----------------------------------...
select * from web_sales, warehouse, web_site, date_dim where d_date_sk = ws_ship_date_sk and w_warehouse_sk = ws_warehouse_sk and web_site_sk = ws_web_site_sk and d_year = 2001
-- Get list of all users who have asked questions ordered by the number of questions asked select name,count(name) from Question group by name order by count(name); -- Get list of all tutors who have deleted questions ordered by the number of questions deleted select deleted_by,count(deleted_by) from Question group by ...
USE trabalhoFinal; CREATE EXTERNAL TABLE IF NOT EXISTS si_env( num_boletim String, data_hora_boletim String, n_envolvido Integer, condutor String, cod_severidade Integer, desc_severidade String, sexo String, cinto_seguranca String, Embreagues String, Idade Integer, nascimento ...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2019 at 02:24 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
select state_id from tbl_states where state_id <> %1 and template_id = %2 and (lower(state_name) = '%3' or lower(state_abbr) = '%4')
/* drop table if exists #p ; select p.ContractNumber ,p.Productid ,p.ClientId ,cast(replace(cppi.RequestXml, 'actionName=FINDPAY&dealerTransactionId=', '') as nvarchar(100)) as TransactionID ,cppi.id as CreditPilotPaymentInfoId ,cppi.CreditCardPaymentInfoId ,pay.id as PaymentId ,p.Start...
insert into image (imageurl) values ("D:/GIP/GIP/GIP2021/SampleImages/BlueSquare.png"); insert into image (imageurl) values ("tester"); insert into authors (author_name) values ("joske") create table authors (author_id integer not null auto_increment, author_name varchar(255), phone varchar(255), primary ...
INSERT INTO chores (chore_name, chore_description, assigned_to, complete, due_by) VALUES ($1, $2, $3, $4, $5);
create sequence city_info_seq start 1 increment 1; create sequence city_seq start 1 increment 1; create table cities (id int4 not null, name varchar(255), primary key (id)); create table city_infos (id int4 not null, information varchar(255), city_id int4, primary key (id)); alter table cities add constraint city_name...
--- -- #%L -- govapps_data -- $Id:$ -- %% -- Copyright (C) 2013 - 2014 Fraunhofer FOKUS / CC ÖFIT -- %% -- Copyright (c) 2,013, Fraunhofer FOKUS, Kompetenzzentrum Oeffentliche IT -- All rights reserved. -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that t...
DROP DATABASE IF EXISTS barterup; CREATE DATABASE barterup; USE barterup;
CREATE TABLE [endur].[vw_gas_phys_location] ( LOCATION_ID INT NULL, LOCATION_NAME NVARCHAR(MAX) NULL, ZONE_ID INT NULL, LOCATION_TYPE INT NULL, INTERCONNECT_LOC_ID INT NULL, INDEX_ID INT NULL, RATE_ID INT NULL, ACTIVE INT NULL, PIPELINE_ID INT NULL, LAST_UPDATE DATE NULL, DAILY_INDEX_I...
create schema rave; create table rave.movies ( id serial primary key, title varchar(256), genres varchar(256), imdb varchar(128), poster_link varchar(512), created_at timestamp ); create table rave.users ( id serial primary key, username varchar(32) unique, password varchar(256)...
create or replace PROCEDURE update_status(code MEMBRES.code_membre%TYPE) IS v_status membres.status%TYPE; BEGIN SELECT status INTO v_status FROM membres WHERE code_membre = code; IF v_status <> 'REGULIER' THEN UPDATE membres SET status = 'REGULIER' WHERE code_membre = code; END IF; END;
/* ************************************************************ */ /* name: ALTER_PRODUCTIONJOBSPEC.sql */ /* revised: 20171212 pgm/teh, creation */ /* Removing an index and a constraint to improve */ /* SP_REQUESTJOB performance (pgm dev, teh C...
SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Indexes */ DROP INDEX FKh1rpx0qlb42dq81f2v1ow5oqh ON categorysecond; DROP INDEX FK3933auil4yrjm19ay5e6hqh5r ON orderitem; DROP INDEX FK7mcli5k2f54bo1qfowdshbqgb ON orderitem; DROP INDEX uid ON orders; DROP INDEX FKplnnjf0f0gfppee3hnnxnwx9p ON pet; /* Drop Tables */ DROP T...
insert into Songs(title, artist) values ('Dream On', 'Aerosmith'), ('Bohemian Rhapsody', 'Queen'), ('I Will Survive', 'Gloria Gaynor'), ('I Will Survive', 'Cake'), ('Love Shack', 'The B-52s'), ('Love Shack', 'The B-52s'), ('Jump', 'Van Halen'), ('Jump', 'The Pointer Sisters'); insert into Contributors(name, b...