sql
stringlengths
6
1.05M
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : aliyun Source Server Type : MySQL Source Server Version : 50730 Source Host : 192.168.3.11:13306 Source Schema : gd-config Target Server Type : MySQL Target Server Version : 50730 File Encoding : 6...
<reponame>sisonke/spaza-app -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 11, 2016 at 03:38 PM -- Server version: 5.5.47-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
select '' as 'ClientId', stu.sc as 'SchoolId', stu.id as 'StudentID_OwnerID', stu.id as 'StudentNumber', stu.fn as 'FirstName', stu.ln as 'LastName', case when stu.gr = -1 then 0 -- Transitional kindergarten (TK) else stu.gr end as 'Grade', cast(stu.id as varchar) + '@example.org' as 'U...
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: Quickadclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
<gh_stars>0 INSERT INTO brokers (broker_no,broker_name,founder,contact_person,office_address,phone,phone1,email,email1,remarks,created_at,updated_at) VALUES (3,'Arun Securities Pvt. Limited',NULL,NULL,'Dillibazar, Kathmandu','01-4239567',NULL,NULL,NULL,NULL,'2020-12-16 06:56:24.0',NULL), (4,'Stock Broker Opal Secur...
-- attempt 1 WITH two_way_friendship AS( SELECT user_id ,friend_id FROM Friendship UNION SELECT friend_id ,user_id FROM Friendship ) SELECT f.user_id, p.page_id, count(*) FROM two_way_friendship AS f LEFT JOIN PageFollow AS p ON f.friend_id = p.user_id WHERE (f.user_id, p.page_id) NOT IN ( SELECT user_...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Waktu pembuatan: 29 Mar 2020 pada 10.19 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Tempo de geração: 29/01/2021 às 19:02 -- Versão do servidor: 5.7.32-0ubuntu0.16.04.1 -- Versão do PHP: 7.0.33-38+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 04, 2021 at 12:01 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 28, 2021 at 09:15 PM -- Server version: 5.7.34 -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE persons ( id uuid DEFAULT uuid_generate_v4() PRIMARY KEY, legalName VARCHAR, displayName VARCHAR, motherName VARCHAR, birthDate DATE, registrationId VARCHAR(11), created_at timestamp NOT NULL DEFAULT current_timestamp, updated_at ...
CREATE TABLE IF NOT EXISTS `spawnlist` ( `npc_id` int(4) DEFAULT '0', `x` float DEFAULT '0', `y` float DEFAULT '0', `z` float DEFAULT '0', `heading` int(4) DEFAULT '0', `respawn_time` int(4) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
---run this script in the transit-performance database --USE transit_performance --GO IF OBJECT_ID('dbo.PostProcessDaily','P') IS NOT NULL DROP PROCEDURE dbo.PostProcessDaily GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.PostProcessDaily --Script Version: Master - 1.1.1.0 --This pr...
-- +migrate Up create table disable_quips ( server_id text not null ); create index on disable_quips(server_id); -- +migrate Down drop table disable_quips;
-- -- PostgreSQL database dump -- -- Dumped from database version 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1) -- Dumped by pg_dump version 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_str...
CREATE TABLE chem_gene_ixns ( ChemicalName blob, ChemicalId varchar(40), CasRegistryNumber blob, GeneSymbol varchar(40), GeneId varchar(40), Organism blob, OrganismId blob, Interaction blob, PubMedIds blob, key(GeneSymbol) );
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @query_id BIGINT = 1028; SELECT dest.text FROM sys.query_store_query qsq CROSS APPLY sys.dm_exec_sql_text(qsq.batch_sql_handle) dest WHERE qsq.query_id = @query_id OPTION (RECOMPILE, MAXDOP 1);
USE discord_clone_database; DROP TABLE IF EXISTS chat_server; DROP TABLE IF EXISTS channel; DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS message; DROP TABLE IF EXISTS chat_server_user; CREATE TABLE chat_server ( id SERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL, create_time TIMESTAMP NOT NULL DEFAULT curren...
BEGIN; INSERT INTO xplankonverter.mappingtable_gmlas_to_gml(id,feature_class, o_table, o_column, o_data_type, t_table, t_column, t_data_type, codespace, complex_type, regel) SELECT 4349, TRUE, 'rp_achse', 'aufschrift', 'character varying', 'rp_achse', 'aufschrift', 'character varying', NULL, NULL, 'gmlas.aufschrift AS...
-- DB/SPELL RANKS: Fix all errors with spell ranks on start up -- Bear Form (Passive) rank 2 is not more need it on Cataclyms (http://www.wowhead.com/spell=1178) -- When spell only have a rank don't need to be present on spell_ranks, so delted DELETE FROM `spell_ranks` WHERE `first_spell_id` IN ('1178');
<filename>EYP/EYP/Tables/TrainingPlan.sql CREATE TABLE [dbo].[TrainingPlan] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1), [EmpId] VARCHAR(50) NOT NULL, [ManagerId] VARCHAR(50) NOT NULL, [TrainingArea] VARCHAR(100) NOT NULL, [TrainingProgram] VARCHAR(100) NOT NULL, [Remarks] VARCHAR(MAX) ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
#!/bin/bash mysql -u root -ppassword << QUERY_INPUT SHOW DATABASES; USE py_device; CREATE TABLE manufacturer ( id int NOT NULL AUTO_INCREMENT, name varchar(10) NOT NULL, enterprise_name varchar(25) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE l3interface ( id int NOT NULL AUTO_INCREMENT, name ...
<gh_stars>0 -- -------------------------------------------------------- -- Hôte : 127.0.0.1 -- Version du serveur: 10.3.13-MariaDB - mariadb.org binary distribution -- SE du serveur: Win64 -- HeidiSQL Version: 9.5.0.5196 -- -------------------------------...
<gh_stars>0 -- Create Database and User -- CREATE USER advantorm IDENTIFIED BY advantorm; -- GRANT ALL PRIVILEGES TO advantorm; -- Create Sequences CREATE SEQUENCE brand_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE product_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE category_id_seq START WITH 1 INCREM...
<filename>www/upgrade/64/pgsql.sql -- Add a display_name column and make the display_name the same as the -- username (for the moment - MRBS admins can insert the proper names later) ALTER TABLE %DB_TBL_PREFIX%users ADD COLUMN display_name varchar(191); UPDATE %DB_TBL_PREFIX%users SET display_name=name;
<reponame>coder9527/infoplat /* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50624 Source Host : localhost:3306 Source Database : iyue_info Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2018-05-29 14:42:34 */ ...
--$Id$ -- Description: add defined by, class name and script name fields to scheduled task -- also update all existing tasks to beans do $$ begin if not exists(select SCRIPT_NAME from SYS_DB_CHANGELOG where SCRIPT_NAME like '%02-140-alterScheduledTask.sql') then alter table SYS_SCHEDULED_TASK add column D...
<gh_stars>0 {% test not_null_where(model, column_name) %} {%- set deprecation_warning = ' Warning: `dbt_utils_justos.not_null_where` is no longer supported. Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config. ' -%} {%- do exceptions.warn(deprecation_warning) -%} {{ r...
<gh_stars>1-10 -- database: presto; tables: table_with_header; groups: hive; --! name: simple_scan SELECT count(*) FROM table_with_header --! 34816 --! name: filter SELECT * FROM table_with_header WHERE data = 'data' --!
<reponame>Leisurelybear/konfig /* Navicat MySQL Data Transfer Source Server : Local Source Server Version : 50730 Source Host : localhost:3306 Source Database : lite_config Target Server Type : MYSQL Target Server Version : 50730 File Encoding : 65001 Date: 2021-03-01 16:54:54 */ ...
<reponame>cb-deepak/pgcodekeeper<gh_stars>10-100 SET search_path = pg_catalog; ALTER TEXT SEARCH DICTIONARY public.first_dictionary (stopwords='myrussian'); ALTER TEXT SEARCH DICTIONARY public.second_dictionary (language='english'); ALTER TEXT SEARCH DICTIONARY public.third_dictionary (stopwords); ALTER TEXT SEA...
<filename>metrics/kubernetes/prs_open_by_sig.sql with issues as ( select distinct sub.issue_id, sub.event_id from ( select distinct id as issue_id, last_value(event_id) over issues_ordered_by_update as event_id from gha_issues where created_at >= '{{from}}' and created_...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the Li...
<reponame>rodel-talampas/gpdb<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/package/metadata_track/sql/alter_part_table_drop_part2.sql create table mdt_part_tbl (aa date, bb date) partition by range (bb) (partition foo start('2008-01-01')); alter table mdt_part_tbl add partition a2 start ('2007-02-01') end ('2007-03-...
ALTER TABLE collections ADD COLUMN `addon_index` varchar(40) NULL, ADD COLUMN `recommended_collection_id` int(11) unsigned NULL, ADD FOREIGN KEY (`recommended_collection_id`) REFERENCES `collections` (`id`); CREATE INDEX `collections_addon_index` ON `collections` (`addon_index`);
-- @testpoint:openGauss保留关键字fetch同时作为表名和列名带引号,建表成功 drop table if exists "fetch"; create table "fetch"( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_fetchuble real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(50) default null,...
<gh_stars>0 create table cursos( cod_curso int not null check( cod_curso > 0 ), tot_cred int not null check( tot_cred >= 0 ), nom_curso varchar(60) not null, cod_coord int, constraint crs_pk primary key( cod_curso ), constraint crs_uk unique( cod_coord ) ); create...
<reponame>MichaelLenghel/Year-3-Databases-2-Assignment --Student Number: C16434974 --Selection-- Select * from Seller; --Projection-- Select * from buyer Where maxPreferredPrice > 500000; --Aggregation with filters on aggregates,-- -- This query gets all agentIDs that has average buyers price greater than 10000 Sele...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 01, 2019 at 04:46 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 10 Jun 2019 pada 20.03 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<filename>classwork/MovieLibrary/MovieDb/Stored Procedures/FindByName.sql -- -- Searches for a movie given its name. -- -- PARAMS: -- name - The name to search for. -- -- RETURNS: The movie, if found. -- CREATE PROCEDURE [dbo].[FindByName] @name NVARCHAR(255) AS BEGIN SET NOCOUNT ON; SET @name = LTRIM(RTR...
SELECT Name, Comments, Mark, ROW_NUMBER() OVER(ORDER BY Mark) AS #ROW FROM Service JOIN Order1 ON Service.Service_ID = Order1.Service_ID WHERE Is_Done = 1 GROUP BY Name, Mark, Comments; SELECT Age, COUNT(Nick) FROM Pet GROUP BY Age; SELECT Age, Name, COUNT(Name) FROM Pet JOIN Pet_Type on Pet_Type.Pet_Type_ID = Pet...
CREATE TABLE t_global ( f_id INTEGER DEFAULT 1 PRIMARY KEY NOT NULL );
<gh_stars>1-10 INSERT INTO permissions (name) VALUES ('Admin'), ('RegisterUser'), ('UpdateUser'), ('DeleteUser'), ('UploadBook'), ('UpdateBook'), ('DeleteBook'), ('CreateAuthor'), ('UpdateAuthor'), ('DeleteAuthor'), ('CreateCategory'), ('UpdateCategory'), ('DeleteCate...
<reponame>aviv/sqlfluff<gh_stars>100-1000 select * from t1 changes(information => default) at(timestamp => 'Fri, 01 May 2015 16:20:00 -0700'::timestamp); select * from t1 changes(information => append_only) at(offset => -60*5); select c1 from t1 changes(information => append_only) at(timestamp => 'Fri, 01...
/************** Find Orphaned Records ************** Author: <NAME> (t: @EitanBlumin | b: eitanblumin.com) More info: https://eitanblumin.com/2018/11/06/find-and-fix-untrusted-foreign-keys-in-all-databases/ ****************************************************/ DECLARE @ForeignKeyName SYSNAME = 'FK_MyTable_MyOtherTable...
<reponame>mcagov/beacons<filename>service/src/main/resources/db/migration/V1.24__Rename_Last_Modified_Date.sql ALTER TABLE legacy_beacon RENAME COLUMN last_modified TO last_modified_date;
CREATE TABLE source_tags ( id serial primary key, tag text not null, user_id int not null constraint source_tags_user_id references users, source_id int not null constraint source_tags_record_id reference...
<gh_stars>10-100 CREATE TABLE users ( id SERIAL PRIMARY KEY, email TEXT NOT NULL, password_digest TEXT NOT NULL, created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL ); ALTER TABLE users ADD UNIQUE (email); CREATE TABLE albums ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL, name TEXT NOT NU...
<filename>admin_user.sql -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 30 Mar 2021 pada 05.09 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/****** Object: View [dbo].[V_Sample_Submission_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Sample_Submission_List_Report] AS SELECT SS.ID, C.Campaign_Num AS Campaign, U.Name_with_PRN AS Received_By, SS.Description, SS.Container_Li...
-- generated by github.com/kubernetes/community/hack/generate-devstats-repo-sql.py -- clean repo groups first update gha_repos set repo_group = null ; -- Add repository groups update gha_repos set repo_group = 'Kubernetes' where lower(name) in ( 'googlecloudplatform/kubernetes', 'kubernetes', 'kubernetes/'...
<filename>database/santipab-prod-24-07-62.sql /* Navicat Premium Data Transfer Source Server : localhost_wamp Source Server Type : MariaDB Source Server Version : 100309 Source Host : localhost:3307 Source Schema : santipab-prod Target Server Type : MariaDB Target Server Versio...
CREATE OR REPLACE FUNCTION my_same(storage_type, storage_type, internal) RETURNS internal AS 'MODULE_PATHNAME' LANGUAGE C STRICT;
<gh_stars>1-10 DROP VIEW IF EXISTS income CASCADE; CREATE VIEW income AS SELECT t.p_state state, tt.name, count(tt.id), sum(tt.fee) FROM invoice_or_paid_tickets t INNER JOIN attendees_tickettype tt ON t.t_ticket_type_id = tt.id GROUP BY p_state, tt.product_number, tt.name ORDER BY t.p_state, tt.product_...
<reponame>hyoklee/hdf5<filename>tools/testfiles/textlinksrc.ddl HDF5 "textlinksrc.h5" { GROUP "/" { EXTERNAL_LINK "ext2soft_link1" { TARGETFILE "tsoftlinks.h5" TARGETPATH "/soft_dset1" DATASET "/soft_dset1" { DATATYPE H5T_STD_I32BE DATASPACE SIMPLE { ( 4, 2 ) / ( 4, 2 )...
<reponame>leonidasyopan/acme<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2018 at 06:06 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
CREATE TABLE [dbo].[Bars] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (MAX) NULL, [Qux_Id] INT NULL, [Foo_Id] INT NULL, CONSTRAINT [PK_dbo.Bars] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_dbo.Bars_dbo.Foos_Foo_Id] FOREIGN KEY ([Foo_Id]) REFE...
<filename>Sql/projects_cost_item.sql CREATE TABLE `sikikami_eaccount`.`projects_cost_item` ( `id` INT NOT NULL AUTO_INCREMENT , `title` VARCHAR(255) NOT NULL , `description` VARCHAR(255) NULL DEFAULT NULL , `single_unit` INT NULL DEFAULT NULL , `single_cost` INT NULL DEFAULT NULL , `unit` INT NULL DEFAULT NULL , `cost`...
<reponame>kreako/soklaki -- Could not auto-generate a down migration. -- Please write an appropriate down migration for the SQL below: -- CREATE OR REPLACE FUNCTION is_observation_complete(_observation_id bigint) RETURNS boolean LANGUAGE plpgsql AS $$ DECLARE student_count integer; _cycle cycle; ...
<reponame>ministryofjustice/laa-crime-means-assessment<gh_stars>0 --liquibase formatted sql --changeset rajeshk:04-assessment-criteria-table-create CREATE TABLE IF NOT EXISTS crime_means_assessment.assessment_criteria ( id INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, date_from TIMESTAMP NOT NULL, date_to TI...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2019 at 10:48 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>CDLUC3/dataup2<filename>Data Sources/OnboardingDB/dbo/Tables/BaseRepository_1.sql  CREATE TABLE [dbo].[BaseRepositories] ( [BaseRepositoryId] [int] IDENTITY(1,1) NOT NULL, [Name] [varchar](200) NULL CONSTRAINT [pk_BaseRepositories] PRIMARY KEY CLUSTERED ([BaseRepositoryId] ASC) );
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: hobbymatcher -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `posts`; CREATE TABLE `posts` ( `id` int(10) NOT NULL AUTO_INCREMENT, `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `author` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `time` bigint(32) NOT NULL, `public` varchar(255) COLLATE utf8mb4_unicode_ci N...
INSERT INTO inboxes VALUES (?, ?, ?, ?, ?, ?, "autosave")
function render ( p_dynamic_action in apex_plugin.t_dynamic_action , p_plugin in apex_plugin.t_plugin ) return apex_plugin.t_dynamic_action_render_result is l_result apex_plugin.t_dynamic_action_render_result; begin l_result.javascript_function := 'function(){M.toast({' || 'html:"' || p_dynamic_action.attribute_0...
----------------------------------------------------- --- additional trls, descriptions etc -- 2019-01-21T13:56:48.178 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET InternalName='MSV3_Product_Category',Updated=TO_TIMESTAMP('2019-01-21 13:56:48','YYYY-MM-DD HH24:MI:SS'),Update...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
CREATE DOMAIN username AS VARCHAR(20) CHECK ( VALUE ~ '^[-_a-zA-Z0-9]*$' AND not_empty(VALUE) );
use socatel; INSERT INTO so_organisation (organisation_id, organisation_name, organisation_structure, organisation_website, twitter_screen_name) VALUES (1,"ChaseSupport",0,"https://chasesupport.eu","ChaseSupport"), (2,"O2",0,"https://o2.eu","O2"), (3,"comcastcares",0,"https://comcastcares.eu","comcastcares"), (4,"spri...
-- Adds the timestamp of the last activity to the groups ALTER TABLE `war_group` ADD COLUMN `last_activity` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `group_features`;
insert into tb_pais(nome) values('Brasil'); insert into tb_pais(nome) values('Argentina'); insert into tb_estado(nome, pais_id) values('Rio de Janeiro', 1);
<reponame>stravin/postgres_partitioning create or replace procedure partitioning.drop_by_datetime(p_scan_date timestamp without time zone) as $BODY$ declare v_list record; v_parts record; v_retention timestamp; v_ddl text; v_message_text text; begin -- Делаем выборку ...
SELECT 'This is a repeatable-migration task'
{{config(enabled = target.type == 'bigquery')}} {% if var("finance_warehouse_payment_sources") or var("finance_warehouse_invoice_sources") %} {% if 'xero_accounting' in (var("finance_warehouse_payment_sources") or var("finance_warehouse_invoice_sources")) %} {% if var("stg_xero_accounting_etl") == 'fivetran' %} with ...
CREATE OR REPLACE FUNCTION mz_trigger_function_landuse() RETURNS TRIGGER AS $$ BEGIN IF mz_calculate_is_landuse(NEW."landuse", NEW."leisure", NEW."natural", NEW."highway", NEW."amenity", NEW."aeroway") then NEW.mz_is_landuse := TRUE; NEW.mz_centroid := ST_Centroid(NEW.way); ELSE NEW.mz_i...
<filename>server/db/011-160627/001-color/do.sql SET FOREIGN_KEY_CHECKS=0; -- -------------------------------------------------------- ALTER TABLE `@prefix@tab_patients` ADD `color` VARCHAR(50) NOT NULL DEFAULT 'concrete' AFTER `name_last`; -- -------------------------------------------------------- SET FOREIGN_KEY_CHEC...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2017 at 02:29 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<filename>Homework/DBFundamentals/Databases Basics/05.Data Aggregation/Gringotts database/p06.DepositsSumForOllivanderFamily.sql SELECT DepositGroup, SUM(DepositAmount) FROM WizzardDeposits WHERE MagicWandCreator = '<NAME>' GROUP BY DepositGroup
<filename>Portal/Binaries/Database/Procedures/ContactLink_Get.drop.sql if exists (select * from dbo.sysobjects where id = object_id(N'[ContactLink_Get]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [ContactLink_Get] GO
CREATE VIEW V_EmployeeNameJobTitle AS SELECT FirstName + ' ' + ISNULL(MiddleName, '') + ' ' + LastName AS [Full Name], JobTitle FROM Employees
/* Navicat Premium Data Transfer Source Server : 本机服务器 Source Server Type : MySQL Source Server Version : 80020 Source Host : localhost:3306 Source Schema : apigateway Target Server Type : SQL Server Target Server Version : 12000000 File Encoding : 65001 Date: 22/12/...
create or replace view tracker_log_changes as select al.tracking_id, al.tracking_date, al.table_owner, al.table_name, al.row_simple_key, al.row_keys, rc.col_name, rc.old_value, rc.new_value, al.os_user, al.host, al.module, al.action, al.tracking_callstack from tracker_logs al, table(al.row...
Select city,(length(city)) as L from station order by L, city Limit 1; Select city,(length(city)) as M from station order by M Desc, city Limit 1;
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS games ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" text NOT NULL );
select substr(doc_uri, instr(doc_uri, '//') + 2) as uri, doc_title, count(*) as views from visits where date(datetime) between date("{{t0}}") and date("{{t1}}") group by uri, doc_title having uri not like 'localhost%%' and uri not like '127.0.0.1%%' order by views desc
<reponame>datagym-ai/datagym-core<gh_stars>10-100 create table point_collection (id varchar(255) not null, segmentation_value_id varchar(255), pointcollection_uuid integer, primary key (id)); alter table point_collection add constraint fk_pointcollection_entryvaluesegmentation foreign key (segmentation_value_id) refere...
<reponame>intrahealth/madx-hiv library HIV_Indicators version '0.0.0' /* The content in this library is draft content developed as part of a working OpenHIE session on the use of FHIR quality reporting functionality to report public health indicators: https://wiki.ihe.net/index.php/Aggregate_Data_Exchange_-_HIV */ u...
-- 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 19 - Discounted Revenue SELECT /*+ set_var(use_secondary_engine=forced) */ ...
ALTER TABLE /*_*/transcache DROP KEY /*i*/tc_url_idx, ADD PRIMARY KEY (tc_url);
--liquibase formatted sql --changeset vaa25:31 UPDATE user_profile SET password = CASE WHEN login = '<EMAIL>' THEN <PASSWORD>' WHEN login = '<EMAIL>' THEN '$2a$10$aPyCWJ8WsJb0gTlz.IL/u.7kB7WiyZr67PUDoEO7x5D40OFOz1rWq' WHEN login = '<EMAIL>...
<filename>server/conf/evolutions/default/1.sql # --- !Ups create table "week_times" ( "id" UUID NOT NULL PRIMARY KEY, "monday" TIME, "tuesday" TIME, "wednesday" TIME, "thursday" TIME, "friday" TIME, "saturday" TIME, "sunday" TIME ); create table "users" ( "id" UUID NOT NULL PRIMARY KEY, "name" VARCHAR NOT NULL, "mobil...
use CMS_DBS3; insert into SEQ_CSS(ID) values(100); insert into SEQ_MRS(ID) values(100); insert into SEQ_MBS(ID) values(100); insert into SEQ_RVS(ID) values(100); insert into SEQ_PSHS(ID) values(100); insert into SEQ_DRS(ID) values(100); insert into SEQ_PGS(ID) values(100); insert into SEQ_DTS(ID)...
CREATE TABLE `virtual_service_seq` ( `virtual_service_seq` VARCHAR(255) NOT NULL, `next_val` INT(19), PRIMARY KEY (`virtual_service_seq`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO virtual_service_seq SET virtual_service_seq='virtual_service_seq', next_val=1; CREATE TABLE virtual_service (id INT NOT...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ErrorLog]( [ErrorLogID] [int] IDENTITY(1,1) NOT NULL, [ErrorTime] [datetime] NOT NULL, [UserName] [sysname] NOT NULL, [ErrorNumber] [int] NOT NULL, [ErrorSeverity] [int] NULL, [ErrorState] [int] NULL, [ErrorProcedure] [nvarchar](126) NULL, [E...
<filename>migrations/2017-12-08-212507_oauth_setup/up.sql<gh_stars>10-100 -- Add the UUID-OSSP extension. CREATE EXTENSION "uuid-ossp"; -- Create the users table. -- -- It might make sense not to remove users and just deactivate them, but that will -- cause problems with privacy. There must be a way to easily remove a...
<reponame>CBIIT/HPC_DME_APIs -- -- HPCDATAMGM-716.sql -- -- Copyright SVG, Inc. -- Copyright Leidos Biomedical Research, Inc -- -- Distributed under the OSI-approved BSD 3-Clause License. -- See http://ncip.github.com/HPC/LICENSE.txt for details. -- -- -- @author <a href="mailto:<EMAIL>"><NAME></a> -- @version $Id$ --...
autocommit off; create class z (zi int); create class y (yi int); create class suby as subclass of y (yz z); create class x (xy y); select xy{ycorr}.yz.zi from x, suby ycorr; rollback;