sql sys fk and sin