text
stringlengths
6
9.38M
-- //FILE SUGARCRM flav=ent ONLY -- project ALTER TABLE PROJECT ADD (ESTIMATED_START_DATE DATE DEFAULT SYSDATE NOT NULL); ALTER TABLE PROJECT ADD (STATUS VARCHAR2(255 CHAR)); ALTER TABLE PROJECT ADD (PRIORITY VARCHAR2(255 CHAR)); ALTER TABLE PROJECT ADD (IS_TEMPLATE NUMBER(1) DEFAULT 0); ALTER TABLE PROJECT ADD (ESTIM...
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. CREATE TABLE players( id serial primary key, name te...
# Efface champ 3/4 : efface valeurs du champ types DELETE FROM `valeur_champ` WHERE `fk_client` = :client AND `fk_monde` = :monde AND `fk_champ` = :champ ;
-- SYSTEM PRIVILEGES GRANT CREATE VIEW TO "DBAUDIT_DATA" ; GRANT CREATE SESSION TO "DBAUDIT_DATA" ; GRANT CREATE TABLE TO "DBAUDIT_DATA" ;
DELETE APPLY_END_AGREEMENT_WITHDRAW_INFO WHERE APPLY_NO = /*relatedApplyNo*/''
-- t_guard_group DROP TABLE IF EXISTS t_guard_group; CREATE TABLE t_guard_group ( id bigint NOT NULL AUTO_INCREMENT, name varchar(128) NOT NULL COMMENT '保安组名字', description varchar(255) default NULL COMMENT '保安组描述', user_id bigint NOT NULL, add_time timestamp NOT NULL default CURRENT_TIMESTAMP, update_time...
use TDA; #Insertando en Libros Insert into Libros(ISBLibro,TituloLibro,NPaginas,PrecioRefLibro) Values("ISB01","Sr Motita Volumen 1",670,9730); Insert into Libros(ISBLibro,TituloLibro,NPaginas,PrecioRefLibro) Values("ISB02","Sr Motita Volumen 2",933,15389); Insert into Libros(ISBLibro,TituloLibro,NPaginas,PrecioRefLibr...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : bankpay Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date: 20/07/2019 17...
-- this could be parsed as well, but we want to avoid that overhead for each integration test -- all resources listed here are in region -- the out of region resources should be mentioned in comments to they're easier to find when creating tests INSERT INTO authoritative_resource (source, resource) VALUES ('test', 'AS1...
/* Project Option: Coyote Residence Office TEAM: King James & The Knights of the Data Table CREATED BY: Daniel Urbach */ CREATE TABLE Advisor ( Advisor_Room_Number VARCHAR2(10) CONSTRAINT Advisor_Room_Number_NN NOT NULL, Phone_Number VARCHAR2(10) CONSTRAINT Advisor_Phone_Number_NN NOT NULL, Department VARCHAR2(30) ...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `tk_client_db` -- -- -------------------------------------------------------- -- -- Table structure for table `active_peer_list` -- CREATE TABLE IF NOT EXISTS `active_peer_list` ( `IP_Address` varchar(46) NOT NULL, `domain` varchar(256) NOT NULL, `subfolde...
create table tbempresa ( nomeresumido varchar(100) not null, codigo varchar(10) not null, denomicacaosocial varchar(200) not null, endereco varchar(200) null default null, numero varchar(20) null default null, complemento varchar(20) null default null, cidade varchar(200) null default null, uf v...
create table Prototype.MPO_STATUS_LKUP ( ID INTEGER NOT NULL, CODE VARCHAR(10) NOT NULL, DESCRIPTION VARCHAR(30) NOT NULL, CREATED_USER VARCHAR(30) NOT NULL, CREATED_TS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, UPDATED_USER VARCHAR(30) NOT NULL, UPDATED_TS TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CUR...
SELECT --先月末レート LATE_LAST_MONTH_RATE FROM --換算レートマスタ RATE_MST WHERE --換算レートマスタ.レート基準日= (SELECT MAX(レート基準日) FROM 換算レートマスタ RATE_BASIC_DATE = (SELECT MAX(RATE_BASIC_DATE) FROM RATE_MST --WHERE レート基準日<=パラメータ.基準月の月末 WHERE RATE_BASIC_DATE <= /*dto.thisMonthEnd*/)
-- ################# -- # Index Queries # -- ################# -- find status of indexes on a partitioned table col "POS" format 990 col partition_name format a30 select partition_position "POS", partition_name, status from dba_ind_partitions where index_name='&ind_name' order by partition_position; -- fi...
/* Assumption Role table has a new role as singer */ /* Question 1 */ WITH SINGER_INFO AS (SELECT PictureID, PersonID FROM ROLE WHERE Role = 'Singer' AND IsMovie = True), OSCAR_WINNERS AS (SELECT PictureID FROM AWARDS WHERE Winner = True AND LOWER(AwardOrganization) = 'oscar'), SINGERS_IN_AWARDEES AS (SELECT ...
-- ABASTAMENT CREATE OR REPLACE VIEW GW_MIGRA_NETAQUA.CAT_OWNER AS SELECT 'PRIVAT' AS id, null AS descript, null AS link FROM DUAL UNION SELECT 'EXTERN', null, null FROM DUAL; -- CLAVEGUERAM CREATE OR REPLACE VIEW GW_MIGRA_NETSANEA.CAT_OWNER...
USE vk; SHOW TABLES; UPDATE users SET updated_at = NOW() WHERE updated_at < created_at; UPDATE profiles SET updated_at = NOW() WHERE updated_at < created_at; UPDATE communities SET updated_at = NOW() WHERE updated_at < created_at; UPDATE friendship SET updated_at = NOW() WHERE updated_at < created_at; UPDATE frie...
--weixiumei 2017/03/15 add start WITH CUR_INSURANCE_INFO AS ( SELECT --SA.物件番号 SA.SUPPLIES_NO, --SA.回数 SA.COUPON, --SA.保険カテゴリーコード SA.INSURANCE_CATEGORY, --SA.保険満了日 AS 現在回保険満了日 SA.MATURITY_DATE AS THIS_MATURITY_DATE FROM OBJ_INSURANCE_INFO SA --保険明細情報 SA INNER JOIN CONTRACT_SUPPLIES_INFO SB ON ...
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 21-11-2014 a las 00:37:23 -- Versión del servidor: 5.5.38 -- Versión de PHP: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
select count(*) as num_queries, Pass, Result, Description from (select (case when (gpdb = algebrizerresult and gpdb like 'processed%') then 'PASSED' else 'NOT PASSED' end) Pass, (case when (gpdb = algebrizerresult and gpdb like 'processed%') then 'PASSED' when (gpdb <> algebrizerresult and algebrizerresul...
CREATE DATABASE common_ssm; CREATE DATABASE slave_ssm;
-- Default DBC_IFMST Trigger Query. INSERT INTO DBC_INFO (INTERFACE_ID, NODE_ID, USE_FLAG, JOB_NAME, JOB_DESC, JOB_TYPE, SOURCE_JDBC_NAME, TARGET_JDBC_NAMES, ...
select concat(date_format(z.datprg,'%d/%m/%Y'),' ', ' 1) ',cntn1,': ',tn1,' ', ' 2) ',cntn2,': ',tn2,' ', ' 3) ',cntn3,': ',tn3,' ', ' 4) ',cntn4,': ',tn4 ) as resumong, concat(date_format(z.datprg,'%d/%m/%Y'),' ', ' 1) ',cnvt1,': ',vt1,' ', ' 2) ',cnvt2,': ',vt2,' ', ' 3) ',cnvt3,': ',vt3,'...
-- create DB CREATE TABLE main_topics ( id SERIAL PRIMARY KEY, title VARCHAR(80), description VARCHAR(10000), active boolean DEFAULT false, upcoming boolean DEFAULT false ); CREATE TABLE subtopics ( id SERIAL PRIMARY KEY, title VARCHAR(80), description VARCHAR(10000), main_id integer REFERENCES mai...
/****** Script for SelectTopNRows command from SSMS ******/ CREATE PROC ERP.Usp_Sel_AsientosDetalle_SaldoInicial @IdEmpresa INT AS BEGIN SELECT AD.ID ,A.ID ,A.IdEmpresa ,PC.CuentaContable ,AD.IdPlanCuenta ,AD.Fecha ,P.ID IdProveedor ,C.ID IdCliente ,A.IdMoneda ,A.TipoCambio ,AD....
create database uglygroup default character set utf8 collate utf8_bin; --[用户表 user] --用户编号 uid 主键 --账号 uname --密码 upwd --电话 utel --邮箱 email --用户角色 ustate 0.用户,1.店家,2.管理员 create table if not exists user( uid int primary key auto_increment, uname varchar(100) not null, upwd varchar(100) not null, utel varchar(11) ...
-- ====== -- Description: -- 1. Drops if exists semantic.weather -- 2. Creates semantic.weather table -- Last Updated: Aug 29, 2019 -- ====== drop table if exists semantic.weather; create table if not exists semantic.weather as ( select t1.datetime_opened as gen_date_weather, t2.* from ( (select distinct ...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 13, 2021 at 12:43 AM -- Server version: 5.7.24 -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
CREATE TABLE setup ( name varchar(50) NOT NULL default '', value text NOT NULL, PRIMARY KEY name (name) )TYPE=InnoDB; CREATE TABLE upload ( objectId char(50) NOT NULL default '', name varchar(50) default '', description varchar(200) default '', datas bl...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 19, 2020 at 12:20 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3308 -- Tiempo de generación: 20-03-2020 a las 20:36:45 -- 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"; /...
create table escolas ( id_escola int not null auto_increment, nome char(60), num_alunos int, cep char(12), cidade char(60), bairro char(60), logradouro char(70), numero int, constraint pk_escolas primary key (id_escola) ); create table alunos ( id_aluno int not null auto_increme...
DROP TABLE INSURANCE_COMPANY; CREATE TABLE INSURANCE_COMPANY (ICNAME VARCHAR2(11) NOT NULL, ICNUM CHAR(6) NOT NULL, ADDRESS VARCHAR2(35), PHONE CHAR(10), PRIMARY KEY (ICNUM)); INSERT INTO INSURANCE_COMPANY VALUES ('NYHL','521921','800 frederik, Washington DC','2024185363'); INSERT INTO INSURANC...
SELECT -- 希望小売価格 MSRP FROM -- 車両マスタ VEHICLE_MST WHERE -- 車両マスタ.メーカー_取引先コード=パラメータ.メーカー_取引先コード AND MAKER_CUSTOMER_CODE = /*makerCustomerCode*/ AND -- 車両マスタ.ブランド=パラメータ.ブランド  AND BRAND = /*brand*/ AND -- 車両マスタ.型式=パラメータ.型式 TYPE = /*type*/
CREATE PROC [ERP].[Usp_Upd_Servicio_Activar] @IdProducto INT, @UsuarioActivo VARCHAR(250) AS BEGIN UPDATE [ERP].[Producto] SET Flag = 1, FechaActivacion = DATEADD(HOUR, 3, GETDATE()) ,UsuarioActivo=@UsuarioActivo WHERE ID = @IdProducto AND IdTipoProducto=2 END
SELECT status.station_id, stations.name, COUNT(CASE WHEN docks_available=0 then 1 END) empty FROM status JOIN stations on stations.station_id = status.station_id GROUP BY 1 ORDER BY empty DESC
CREATE OR REPLACE VIEW request AS SELECT `pend_id` as id, `pend_email` as email, `pend_ip` as ip, `pend_name` as name, `pend_cmt` as comment, `pend_status` as status, `pend_date` as date, `pend_checksum` as checksum, `pend_emailsent` as emailsent, `pend_mailconfirm` as emailconfirm,...
drop database if exists DBproyectodaw;
create table usr ( id int identity (1,1) primary key, username varchar(50) unique not null, email varchar(50) unique not null, password varchar(150) not null, firstName varchar(50), lastName varchar(50), avatarURL varchar(200) ); create table admin( id int foreign key references usr primary key ); cre...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 13, 2017 at 09:09 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP DATABASE PhillyPhoodies; CREATE DATABASE PhillyPhoodies; Use PhillyPhoodies; CREATE TABLE Users (UserID INT unsigned AUTO_INCREMENT, UserName varchar(30) not null, UserPassword varchar(120) not null, Email varchar(30), Location varchar(30) not null, primary key(UserId) ); CREATE TABLE TypeFood (FoodTypeID va...
ALTER TABLE `XXX_papoo_news_user` DROP INDEX `news_user_email`; ##b_dump##
CREATE PROC [ERP].[Usp_Sel_AplicacionAnticipoCobrar_By_ID] @IdAplicacionAnticipo INT AS BEGIN SELECT AAC.Serie Serie, AAC.Documento Documento, AAC.FechaAplicacion FechaRegistro, AAC.TipoCambio TipoCambio, AAC.Total Total, AAC.UsuarioRegistro UsuarioRegistro, ENT.Nombre ...
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 02, 2019 at 06:03 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.17-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
USE FamilyEconomic_db ALTER TABLE userData ALTER COLUMN [value] NVARCHAR(20) NULL
?* Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. */ ( select CITY, char_length(CITY) as...
CREATE VIEW IndivTourCustomerList AS SELECT td.indiv_tour_id, concat(c.fname, ' ', c.lname) AS 'full_name', date_format(td.join_date, '%Y-%m-%d') AS 'join_date', td.join_location, date_format(td.leave_date, '%Y-%m-%d') AS 'leave_date', td.leave_location, c.phone, concat(c.other_contact_type, ': ', c.ot...
DROP TABLE curries;
insert into customer values ('0000001','301','3655770','Patrick','Gallagher','P L 1105 Kingwd Dr, Silver Spring, MD 20012'); insert into customer values ('0000002','301','2536038','L','Ali','10331 Bloom Dr, Damascus, MD 20872'); insert into customer values ('0000003','301','2519692','Lisa','Gallant','7...
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: template_crudbooster -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
PRAGMA foreign_keys = ON; ---Nombre de test échouant : 16 --------------------------Table Spectacles------------------------------------------ -- fonctionne INSERT INTO Spectacles VALUES (1,'La Somnanbule','toutPublic',20,60 ,'opera',FALSE,FALSE,"Description","path/to/vignette.png"); --@ violates PK_Spectacles INSERT...
USE kuenstler_DB; SET Names utf8; INSERT INTO `kunde` VALUES ('1501', 'Herr', '0', 'Karl', 'Maier', 'Am Waldweg 2', '75173', 'Pforzheim', '1980-012-07', 'Maier_Karl@gmx.de', '07321-5577628', '174.135.57.62', '2018-11-13 15:37:45', 'aktiv'), ('1502', 'Frau', '0', 'Simone', 'Schmidt', 'Strandpromenade 10', '18546', 'Sa...
#standardSQL SELECT * FROM `bigquery-public-data.github_repos.contents` WHERE id IN ( SELECT id FROM `bigquery-public-data.github_repos.files` WHERE path LIKE '%.ts') AND binary = FALSE AND NOT STARTS_WITH(content, '<')
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 04 Lis 2019, 20:20 -- Wersja serwera: 10.4.6-MariaDB -- Wersja PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied create table if not exists gallery ( id serial4, seq int2, caption varchar (100), brief_info text, content_id int8, free_text text, created timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updated timestamp ...
CREATE DATABASE IF NOT EXISTS `timetraining` DEFAULT CHARSET utf8; USE `timetraining`; DROP TABLE IF EXISTS `institution`; CREATE TABLE `institution` ( `insid` BIGINT(16) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '机构id', `district` CHAR(6) NULL DEFAULT NULL COMMENT '区县行政区划代码,见GB/T 2260' , `name` VARCHAR(25...
USE EmployeeTracker; CREATE TABLE department ( id INT NOT NULL, depName VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); -- role -- CREATE TABLE depRole ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary DECIMAL NOT NULL, -- link depid to department > department id -- department_id INT NOT...
drop database airline_ontime cascade;
CREATE TABLE histories ( id uuid NOT NULL DEFAULT uuid_generate_v4(), table_reference VARCHAR NOT NULL, field VARCHAR NOT NULL, value VARCHAR NOT NULL, created_date VARCHAR NOT NULL, user_uuid uuid NOT NULL, row_uuid uuid NOT NULL, CONSTRAINT histories_pkey PRIMARY KEY (id) );
PARAMETERS [@FechaIniID] Text (255), [@FechaFinID] Text (255), [@ProveedorID] Text (255), [@FundoID] Text (255), [@CategoriaID] Text (255), [@TipoID] Text (255), [@ProductoID] Text (255); SELECT * FROM (SELECT G.Tipo, B.Fundo, C.C...
alter table employees ADD name_id INT NOT NULL; alter table employees ADD CONSTRAINT employees_titles_name_id FOREIGN KEY (`name_id`) REFERENCES `titles`(`id`);
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2020 at 07:42 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
set serverout on whenever sqlerror exit; select to_number('Warning:Do not exec this script in the current user') from (select user name from dual) where upper(name) in ( 'SCOTT', 'ORACLE_OCM', 'XS$NULL', 'MDDATA', 'DIP', 'APEX_PUBLIC_USER', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR', 'DBSNMP', 'SYSMAN', 'FL...
DROP TABLE FrequencyLookup; CREATE TABLE FrequencyLookup ( FLID int NOT NULL AUTO_INCREMENT, FLDays INT NOT NULL UNIQUE, PRIMARY KEY(FLID) ); INSERT INTO FrequencyLookup (FLDays) VALUES (1); INSERT INTO FrequencyLookup (FLDays) VALUES (7); INSERT INTO FrequencyLookup (FLDays) VALUES (30);
SHOW TOPICS; CREATE STREAM hue_logs ( log STRING ) WITH ( kafka_topic='hue_logs', value_format='json', partitions=1 ) ; SELECT log, rowtime FROM hue_logs EMIT CHANGES LIMIT 10 ; CREATE STREAM hue_stats ( ts string, username STRING, callsCt BIGINT ) WITH ( kafka_topic='hue_stats', value_forma...
/* LAB 12 PHILIP BURGGRAF */ --1. CREATE VIEW OPEN_ITEMS AS SELECT VENDOR_NAME, INVOICE_NUMBER, INVOICE_TOTAL, (INVOICE_TOTAL - PAYMENT_TOTAL - CREDIT_TOTAL) AS BALANCE_DUE FROM AP.INVOICES JOIN AP.VENDORS ON INVOICES.VENDOR_ID = VENDORS.VENDOR_ID WHERE (INVOICE_TOTAL - PAYMENT_TOTAL - CREDIT_TOTAL) > 0 ...
create table Academia( id serial primary key, nome varchar(50) not null unique ) create table Pessoa( id serial primary key, nome varchar(50) not null, email varchar(30) not null unique, academia_id integer not null, foreign key (academia_id) references Academia (id) on delete cascade ) create table Instrutor(...
ALTER TABLE user_leave ADD COLUMN leave_type leave NOT NULL DEFAULT 'other'::leave;
/* Formatted on 21/07/2014 18:34:39 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRE0_APP_PT_COMUNICAZIONI ( COD_ABI_CARTOLARIZZATO, COD_NDG, COD_SNDG, DESC_NOME_CONTROPARTE, COD_MATRICOLA_GESTORE, COD_TIPO_COMUNICAZIONE, DTA_INVIO_COMUNICAZIONE, ID_UTENTE, ID_REFERENT...
CREATE TABLE users ( user_id SERIAL, name varchar(80), email varchar(30), github varchar(30), blackout date, PRIMARY KEY (user_id) ); CREATE TABLE interviews ( interview_id SERIAL, user_id INTEGER, interviewer_id INTEGER, decision varchar(50), technical_grade varchar(2), personal_grade varchar...
accept SID char default XE prompt 'Enter SID [XE]: ' accept system_password char default manager prompt 'Enter SYSTEM password: ' hide prompt Connecting as SYSTEM connect system/&&system_password@&&SID create user meteor identified by meteor; exit
create table coleta_qrcode ( id bigint auto_increment primary key, ativo bit null, creation_date datetime null, update_date datetime null, uuid varchar(255) null, estacao_id bigi...
truncate table "patient";
-- This is the SQL for use on MySQL to clear the Sakai Evaluation tables from -- the database. -- -- WARNING: This will delete all your evaluation data permanently! It should only -- be used for development purposes. -- set FOREIGN_KEY_CHECKS=0; drop table if exists EVAL_ADHOC_EVALUATEES; drop table if exists...
--liquibase formatted sql --changeset tomas:legal_person_cuit_to_string splitStatements:false BEGIN TRANSACTION; -- cambio la columna de cuit a string (era numeric) ALTER TABLE legal_person ALTER COLUMN cuit TYPE character varying(20); COMMIT;
-- Add index on history for timestamp to speedup unref cleanup CREATE INDEX history_timestamp on history ( timestamp );
-- DML USE Pessoas; INSERT INTO Pessoas(Nome) VALUES ('Lucas'), ('Luqonhas');
-- phpMyAdmin SQL Dump -- version 4.4.13.1 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Feb 18, 2016 at 01:11 PM -- Server version: 5.6.27 -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
alter table student add class_no varchar(50) not null comment '班别'; alter table student add dormitory_no varchar(50) not null comment '宿舍号';
# Write your MySQL query statement below WITH # Get excellent student counts from NYU NYCts AS (SELECT COUNT(*) AS NY FROM NewYork WHERE score >= 90), # Get excellent student counts from CU CACts AS (SELECT COUNT(*) AS CA FROM California WHERE score >= 90) # Compare SELECT CASE WHEN NY > CA THEN "New York University"...
CREATE PROCEDURE `getFloorByOffice` (IN `office_id` INT(8), IN `office_location` VARCHAR(50)) BEGIN SELECT * FROM `floor` where `fk_office_id`=`office_id` and `fk_office_location`=`office_location`; END CREATE PROCEDURE `createFloor` (IN `floor_num` INT(8), IN `office_id` INT(8), IN `office_location` VARCHAR(50), IN...
--TODO 1: Insert records into the ‘role’ table. INSERT INTO ROLE VALUES ('RL003','Employee'); /**TODO 2: Provide a combined list of all users and roles. If a role doesn’t exist for a user let it be null/empty and similarly if no users belong to a role, keep the user information null/empty. **/ SELECT * ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2021 at 06:51 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/* Create a Wikipedia Schema */ CREATE SCHEMA wikipedia AUTHORIZATION postgres; /* Create table for movies */ CREATE TABLE wikipedia.movies ( view_date timestamp without time zone NOT NULL, title text, total_view integer ); ALTER TABLE wikipedia.movies OWNER to postgres; /* Create table for com...
select P.DayOfWeek,avg(P.ArrDelay) as delay from performance P group by P.DayOfWeek order by P.DayOfWeek; select floor(P.CRSDepTime/100),avg(P.ArrDelay) as delay from performance P group by floor(P.CRSDepTime/100) order by floor(P.CRSDepTime/100);
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50624 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2017-09-14 14:33:19 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
/* MySQL Data Transfer Date: 03/01/2011 20:41:10 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for cities -- ---------------------------- DROP TABLE IF EXISTS `cities`; CREATE TABLE `cities` ( `id` mediumint(7) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci N...
drop table if exists project; drop table if exists annotations; create table project ( id integer primary key, project_id text, title text, score_file text, audio_file text, user_id text ); create table annotations ( id integer primary key, annotation_id text, annotation_audio text, project_id text, annotati...
DROP TABLE IF EXISTS wf_docstate_transitions; -- CREATE TABLE wf_docstate_transitions ( id INT NOT NULL AUTO_INCREMENT, doctype_id INT NOT NULL, from_state_id INT NOT NULL, docaction_id INT NOT NULL, to_state_id INT NOT NULL, PRIMARY KEY (id), FOREIGN KEY (doctype_id) REFERENCES wf_doctype...
-- List the first 10 distinct last name sorted in descending order. SELECT * FROM employees GROUP BY last_name DESC LIMIT 10; -- Find your query for employees born on Christmas and hired in the 90s -- from order_by_exercises.sql. Update it to find just the first 5 employees. SELECT * FROM employees WHERE hire_date B...
-- MySQL dump 10.13 Distrib 8.0.24, for Win64 (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 8.0.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
DROP DATABASE OPENBEER; CREATE DATABASE IF NOT EXISTS OPENBEER; USE OPENBEER; /* PREFIXO DAS TABELA TS = TABELA DO SISTEMA TB = TABELA NORMAL VD = TABELA DE VENDAS FI = TABELA DE FINANCEIRO */ -- TABELA DE PERMISSÃO DE ACESSO AO SISTEMA CREATE TABLE IF NOT EXISTS TS_PERMISSAOACESSO ( PK_ID BIGINT NOT N...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 04-Jun-2020 às 03:42 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
select * from sponsor_hierarchy where sponsor_code = '100241'; select * from sponsor where sponsor_name like 'Princ%'; select count(s.sponsor_code) from sponsor s, sponsor_hierarchy sh where sh.update_user != 'KCDEV30' and s.sponsor_code = sh.sponsor_code; select s.sponsor_code, s.sponsor_name,sh.level1,sh.lev...
ALTER TABLE `XXX_plugin_blogger_shortcuts` ADD `blogger_shortcuts_month` int(1) NOT NULL; ##b_dump## ALTER TABLE `XXX_plugin_blogger_shortcut_config` ADD `blogger__feldtypen_fuer_schlagworte` VARCHAR( 255 ) NOT NULL; ##b_dump##
DROP database IF EXISTS qcm; CREATE database qcm; GRANT ALL PRIVILEGES ON qcm.* TO 'adm_qcm'@'localhost' identified BY 'Passw0rd';
INSERT INTO licence_transfer_hst VALUES ('001', '2004-10-01', 'FROM', 'CHANGE OF COMPANY NAME', 'Esso Exploration and Production Norway A/S', 100.000000, NULL, 20756, 353, '9999-12-31', '2013-05-08'); INSERT INTO licence_transfer_hst VALUES ('001', '2004-10-01', 'TO', 'CHANGE OF COMPANY NAME', 'ExxonMobi...
drop table air_Equipment; drop table air_Can_Fly; drop table air_Assigned_To; drop table air_Booked_On; drop table air_Departure; drop table air_Pilot; drop table air_Employee; drop table air_Person; drop table air_Aircraft; drop table air_Plane; drop table air_Flight; create table air_Person ( Name varchar(15) no...
/* * Function: extract_schema_from_file_name() * * Takes a raw file path, and extracts the schema name from it * * Parameters * path: The raw file name value to extract the schema name from */ DROP FUNCTION IF EXISTS extract_schema_from_file_name; DELIMITER $$ CREATE FUNCTION extract_schema_from_file_name(...